From: Robert Griesemer Date: Tue, 9 Jul 2013 23:20:19 +0000 (-0700) Subject: builtin: document print and println X-Git-Tag: go1.2rc2~1099 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c7065e927d1e8bbee6365bc8acfdf0b58ffdce8a;p=gostls13.git builtin: document print and println Fixes #5787. R=r CC=golang-dev https://golang.org/cl/11057043 --- diff --git a/src/pkg/builtin/builtin.go b/src/pkg/builtin/builtin.go index 128a1b5f8f..51550a459c 100644 --- a/src/pkg/builtin/builtin.go +++ b/src/pkg/builtin/builtin.go @@ -236,6 +236,19 @@ func panic(v interface{}) // panicking. func recover() interface{} +// The print built-in function formats its arguments in an implementation- +// specific way and writes the result to standard error. +// Print is useful for bootstrapping and debugging; it is not guaranteed +// to stay in the language. +func print(args ...Type) + +// The println built-in function formats its arguments in an implementation- +// specific way and writes the result to standard error. +// Spaces are always added between arguments and a newline is appended. +// Println is useful for bootstrapping and debugging; it is not guaranteed +// to stay in the language. +func println(args ...Type) + // The error built-in interface type is the conventional interface for // representing an error condition, with the nil value representing no error. type error interface {