aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mpagealloc.go
diff options
context:
space:
mode:
authorbqyang <clamyang2018@gmail.com>2022-08-31 08:28:13 +0000
committerGopher Robot <gobot@golang.org>2022-08-31 16:27:09 +0000
commitbc0a033266eeaed189a5c77becd45b861fd245f5 (patch)
tree670a8e298ef4f78bf85abb006c082b98f9b620cd /src/runtime/mpagealloc.go
parentfa0e3bffb494fb9f97c241d6579daa443fbcbb06 (diff)
downloadgo-bc0a033266eeaed189a5c77becd45b861fd245f5.tar.xz
runtime: fix comment typo in mpagealloc.go
leve --> level Change-Id: Ia5ff46c79c4dda2df426ec75d69e8fcede909b47 GitHub-Last-Rev: e57cad22d99b74c7e220f4d5a7b03a830544aea9 GitHub-Pull-Request: golang/go#54788 Reviewed-on: https://go-review.googlesource.com/c/go/+/426974 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Keith Randall <khr@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> Auto-Submit: Keith Randall <khr@google.com> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Keith Randall <khr@google.com>
Diffstat (limited to 'src/runtime/mpagealloc.go')
-rw-r--r--src/runtime/mpagealloc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mpagealloc.go b/src/runtime/mpagealloc.go
index bb30b4a40b..5661c37501 100644
--- a/src/runtime/mpagealloc.go
+++ b/src/runtime/mpagealloc.go
@@ -676,7 +676,7 @@ nextLevel:
// Determine j0, the first index we should start iterating from.
// The searchAddr may help us eliminate iterations if we followed the
- // searchAddr on the previous level or we're on the root leve, in which
+ // searchAddr on the previous level or we're on the root level, in which
// case the searchAddr should be the same as i after levelShift.
j0 := 0
if searchIdx := offAddrToLevelIndex(l, p.searchAddr); searchIdx&^(entriesPerBlock-1) == i {