]> Cypherpunks repositories - gostls13.git/commitdiff
builtin: document built-in error type
authorAndrew Gerrand <adg@golang.org>
Wed, 2 Nov 2011 06:03:36 +0000 (15:03 +0900)
committerAndrew Gerrand <adg@golang.org>
Wed, 2 Nov 2011 06:03:36 +0000 (15:03 +0900)
R=golang-dev, dsymonds, r
CC=golang-dev
https://golang.org/cl/5307080

src/pkg/builtin/builtin.go

index 07acce4f7007ae823aa8c26be6be4733988d9c23..59e13a5b83d2a2f56ab5821031a053a9a57bc46c 100644 (file)
@@ -3,10 +3,10 @@
 // license that can be found in the LICENSE file.
 
 /*
-       Package builtin provides documentation for Go's built-in functions.
-       The functions documented here are not actually in package builtin
+       Package builtin provides documentation for Go's predeclared identifiers.
+       The items documented here are not actually in package builtin
        but their descriptions here allow godoc to present documentation
-       for the language's special functions.
+       for the language's special identifiers.
 */
 package builtin
 
@@ -133,3 +133,9 @@ func panic(v interface{})
 // nil. Thus the return value from recover reports whether the goroutine is
 // panicking.
 func recover() interface{}
+
+// 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 {
+       Error() string
+}