1
0
mirror of https://github.com/golang/go synced 2024-11-23 18:30:06 -07:00

reflect: fix typo on resolveReflectName function documentation

Change-Id: I250de9db4e8aca6e1069d05c73051571f1712091
Reviewed-on: https://go-review.googlesource.com/c/go/+/229141
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Koichi Shiraishi 2020-04-22 03:24:58 +09:00 committed by Brad Fitzpatrick
parent e5bd6e1c79
commit 24a1c8f605

View File

@ -656,7 +656,7 @@ func resolveTextOff(rtype unsafe.Pointer, off int32) unsafe.Pointer
// be resolved correctly. Implemented in the runtime package.
func addReflectOff(ptr unsafe.Pointer) int32
// resolveReflectType adds a name to the reflection lookup map in the runtime.
// resolveReflectName adds a name to the reflection lookup map in the runtime.
// It returns a new nameOff that can be used to refer to the pointer.
func resolveReflectName(n name) nameOff {
return nameOff(addReflectOff(unsafe.Pointer(n.bytes)))