Skip to content

Commit 23145e8

Browse files
committed
runtime: amend doc for setPinned
1 parent e12d8a9 commit 23145e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/pinner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ func isPinned(ptr unsafe.Pointer) bool {
143143
}
144144

145145
// 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,
146+
// It will be ignored while trying to pin a non-Go pointer.
147+
// It will panic while trying to unpin a non-Go pointer,
148148
// which should not happen in normal usage.
149149
func setPinned(ptr unsafe.Pointer, pin bool) bool {
150150
span := spanOfHeap(uintptr(ptr))

0 commit comments

Comments
 (0)