There was an error while loading. Please reload this page.
1 parent e12d8a9 commit 23145e8Copy full SHA for 23145e8
src/runtime/pinner.go
@@ -143,8 +143,8 @@ func isPinned(ptr unsafe.Pointer) bool {
143
}
144
145
// setPinned marks or unmarks a Go pointer as pinned, when the ptr is a Go pointer.
146
-// It will be ignored while try to pin a non-Go pointer,
147
-// and it will be panic while try to unpin a non-Go pointer,
+// It will be ignored while trying to pin a non-Go pointer.
+// It will panic while trying to unpin a non-Go pointer,
148
// which should not happen in normal usage.
149
func setPinned(ptr unsafe.Pointer, pin bool) bool {
150
span := spanOfHeap(uintptr(ptr))
0 commit comments