Commit f7d473dd authored by Robert Griesemer's avatar Robert Griesemer

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
parent d7c04517
...@@ -488,6 +488,7 @@ var predeclaredTypes = map[string]bool{ ...@@ -488,6 +488,7 @@ var predeclaredTypes = map[string]bool{
"byte": true, "byte": true,
"complex64": true, "complex64": true,
"complex128": true, "complex128": true,
"error": true,
"float32": true, "float32": true,
"float64": true, "float64": true,
"int": true, "int": true,
...@@ -495,6 +496,7 @@ var predeclaredTypes = map[string]bool{ ...@@ -495,6 +496,7 @@ var predeclaredTypes = map[string]bool{
"int16": true, "int16": true,
"int32": true, "int32": true,
"int64": true, "int64": true,
"rune": true,
"string": true, "string": true,
"uint": true, "uint": true,
"uint8": true, "uint8": true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment