]> Cypherpunks repositories - gostls13.git/commitdiff
reflect: correct typoo in comment
authorIan Lance Taylor <iant@golang.org>
Tue, 7 Sep 2021 23:10:31 +0000 (16:10 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 8 Sep 2021 00:02:45 +0000 (00:02 +0000)
Change-Id: Ic3c69906a8afde63278f173df0427b1c460c9f3e
Reviewed-on: https://go-review.googlesource.com/c/go/+/348189
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>

src/reflect/type.go

index 1d637d134e9c384d02f655033520bb77b8faeffb..afb802e64138cab104ff1e986b56aa5c957fb0aa 100644 (file)
@@ -1428,7 +1428,7 @@ var ptrMap sync.Map // map[*rtype]*ptrType
 // For example, if t represents type Foo, PtrTo(t) represents *Foo.
 //
 // Deprecated: use PointerTo. PtrTo is the old spelling.
-// The two functions behaves identically.
+// The two functions behave identically.
 func PtrTo(t Type) Type { return PointerTo(t) }
 
 // PointerTo returns the pointer type with element t.