]> Cypherpunks repositories - gostls13.git/commitdiff
reflect: fix panic strings
authorLai Jiangshan <eag0628@gmail.com>
Wed, 15 Feb 2012 02:51:49 +0000 (13:51 +1100)
committerRob Pike <r@golang.org>
Wed, 15 Feb 2012 02:51:49 +0000 (13:51 +1100)
use ':' instead of ';' to keep consistency with the other panic strings

R=golang-dev, dsymonds, r
CC=golang-dev
https://golang.org/cl/5666048

src/pkg/reflect/type.go

index f55454b1816c68abd3156514205cf2883d96e79d..53638a4624baab8f4e2257115ab21f4656039ba7 100644 (file)
@@ -561,7 +561,7 @@ func (t *commonType) Elem() Type {
                tt := (*sliceType)(unsafe.Pointer(t))
                return toType(tt.elem)
        }
-       panic("reflect; Elem of invalid type")
+       panic("reflect: Elem of invalid type")
 }
 
 func (t *commonType) Field(i int) StructField {
@@ -630,7 +630,7 @@ func (t *commonType) NumField() int {
 
 func (t *commonType) NumIn() int {
        if t.Kind() != Func {
-               panic("reflect; NumIn of non-func type")
+               panic("reflect: NumIn of non-func type")
        }
        tt := (*funcType)(unsafe.Pointer(t))
        return len(tt.in)
@@ -638,7 +638,7 @@ func (t *commonType) NumIn() int {
 
 func (t *commonType) NumOut() int {
        if t.Kind() != Func {
-               panic("reflect; NumOut of non-func type")
+               panic("reflect: NumOut of non-func type")
        }
        tt := (*funcType)(unsafe.Pointer(t))
        return len(tt.out)