Skip to content

Commit 8562386

Browse files
callthingsoffgopherbot
authored andcommitted
runtime: amend doc for setPinned
Change-Id: I9c5a8f8a031e368bda312c830dc266f5986e8b1a GitHub-Last-Rev: 23145e8 GitHub-Pull-Request: #76160 Reviewed-on: https://go-review.googlesource.com/c/go/+/717341 Reviewed-by: Keith Randall <khr@golang.org> Auto-Submit: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Pratt <mpratt@google.com>
1 parent c7ccbdd commit 8562386

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)