]> Cypherpunks repositories - gostls13.git/commitdiff
go/doc: added error, rune to list of predeclared types
authorRobert Griesemer <gri@golang.org>
Tue, 31 Jan 2012 23:41:25 +0000 (15:41 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 31 Jan 2012 23:41:25 +0000 (15:41 -0800)
Don't throw away factory functions returning error or rune.

Fixes #2820.

R=rsc
CC=golang-dev
https://golang.org/cl/5604046

src/pkg/go/doc/reader.go

index 3c30d1a07bc87d24497fd77b1b2c2bac036c6137..31648b13e1e1ec6a9246a63e287ff9f3a725b4c0 100644 (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,