mirror of
https://github.com/golang/go
synced 2024-11-25 10:07:56 -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:
parent
c4845c1c49
commit
4d3c999086
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user