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

go/doc: added error, rune to list of predeclared types

Don't throw away factory functions returning error or rune.

Fixes #2820.

R=rsc
CC=golang-dev
https://golang.org/cl/5604046
This commit is contained in:
Robert Griesemer 2012-01-31 15:41:25 -08:00
parent d7c04517a0
commit f7d473dd33

View File

@ -488,6 +488,7 @@ var predeclaredTypes = map[string]bool{
"byte": true,
"complex64": true,
"complex128": true,
"error": true,
"float32": true,
"float64": true,
"int": true,
@ -495,6 +496,7 @@ var predeclaredTypes = map[string]bool{
"int16": true,
"int32": true,
"int64": true,
"rune": true,
"string": true,
"uint": true,
"uint8": true,