]> Cypherpunks repositories - gostls13.git/commitdiff
spec: fix Typeof() return type
authorGustavo Niemeyer <gustavo@niemeyer.net>
Fri, 4 Feb 2011 17:29:08 +0000 (09:29 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 4 Feb 2011 17:29:08 +0000 (09:29 -0800)
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/4121058

doc/go_spec.html

index 2c6046a7c5525f62c658fcb775ec2d415c417a14..79548be40b0ad476e5c3b452846df6aee8a88869 100644 (file)
@@ -5049,8 +5049,8 @@ func Alignof(variable ArbitraryType) int
 func Offsetof(selector ArbitraryType) int
 func Sizeof(variable ArbitraryType) int
 
-func Reflect(val interface {}) (typ runtime.Type, addr uintptr)
-func Typeof(val interface {}) reflect.Type
+func Reflect(val interface{}) (typ runtime.Type, addr uintptr)
+func Typeof(val interface{}) (typ interface{})
 func Unreflect(typ runtime.Type, addr uintptr) interface{}
 </pre>