1
0
mirror of https://github.com/golang/go synced 2024-11-22 04:54:42 -07:00

builtin: document built-in error type

R=golang-dev, dsymonds, r
CC=golang-dev
https://golang.org/cl/5307080
This commit is contained in:
Andrew Gerrand 2011-11-02 15:03:36 +09:00
parent c4845c1c49
commit 4d3c999086

View 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
}