]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix comment typo in mpagealloc.go
authorbqyang <clamyang2018@gmail.com>
Wed, 31 Aug 2022 08:28:13 +0000 (08:28 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 31 Aug 2022 16:27:09 +0000 (16:27 +0000)
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>
src/runtime/mpagealloc.go

index bb30b4a40b74bf6ea5621a1407e6f2396b1f927d..5661c375011c60df7412fb07cc21364325cf6967 100644 (file)
@@ -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 {