aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/slice.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2022-02-04 21:14:13 -0800
committerIan Lance Taylor <iant@golang.org>2022-02-05 06:14:58 +0000
commitd588f487703e773ba4a2f0a04f2d4141610bff6b (patch)
tree9c3c1deefcf77c871dd6837670060d191a0de097 /src/runtime/slice.go
parent7c9885def52a408532085a566eea107f31ad1556 (diff)
downloadgo-d588f487703e773ba4a2f0a04f2d4141610bff6b.tar.xz
runtime: change sys.PtrSize to goarch.PtrSize in comments
The code was updated, the comments were not. Change-Id: If387779f3abd5e8a1b487fe34c33dcf9ce5fa7ff Reviewed-on: https://go-review.googlesource.com/c/go/+/383495 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime/slice.go')
-rw-r--r--src/runtime/slice.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/slice.go b/src/runtime/slice.go
index ac0b7d5fef..e0aeba604f 100644
--- a/src/runtime/slice.go
+++ b/src/runtime/slice.go
@@ -214,7 +214,7 @@ func growslice(et *_type, old slice, cap int) slice {
var lenmem, newlenmem, capmem uintptr
// Specialize for common values of et.size.
// For 1 we don't need any division/multiplication.
- // For sys.PtrSize, compiler will optimize division/multiplication into a shift by a constant.
+ // For goarch.PtrSize, compiler will optimize division/multiplication into a shift by a constant.
// For powers of 2, use a variable shift.
switch {
case et.size == 1: