]> Cypherpunks repositories - gostls13.git/commitdiff
builtin: document print and println
authorRobert Griesemer <gri@golang.org>
Tue, 9 Jul 2013 23:20:19 +0000 (16:20 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 9 Jul 2013 23:20:19 +0000 (16:20 -0700)
Fixes #5787.

R=r
CC=golang-dev
https://golang.org/cl/11057043

src/pkg/builtin/builtin.go

index 128a1b5f8fc0ff969e80e800328d5330c131185a..51550a459cb69788d5b9060b4cb69a8d82ccb6df 100644 (file)
@@ -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 {