summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2023-05-01 12:41:56 +0800
committerGopher Robot <gobot@golang.org>2023-05-02 00:07:07 +0000
commit80d64adb7950d09371a351bbd3a23facc2cfe5cf (patch)
treea18f24317926962cded412aa0438c0f855aa7707
parent73a4684caa1567c06e239dc657b82ede77777e3b (diff)
downloadgo-git-80d64adb7950d09371a351bbd3a23facc2cfe5cf.tar.gz
runtime: fix comment typo in page allocator
A commit looks to have some minor bug that makes comments look confusing. The commit in question: https://go-review.googlesource.com/c/go/+/250517 Change-Id: I7859587be15a22f8330d6ad476058f74ca2ca6ab Reviewed-on: https://go-review.googlesource.com/c/go/+/490795 Run-TryBot: shuang cui <imcusg@gmail.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> Auto-Submit: Ian Lance Taylor <iant@golang.org> Reviewed-by: Michael Pratt <mpratt@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
-rw-r--r--src/runtime/mpagealloc_64bit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mpagealloc_64bit.go b/src/runtime/mpagealloc_64bit.go
index 0ebeafad61..1418831a50 100644
--- a/src/runtime/mpagealloc_64bit.go
+++ b/src/runtime/mpagealloc_64bit.go
@@ -90,7 +90,7 @@ func (p *pageAlloc) sysInit(test bool) {
// sysGrow performs architecture-dependent operations on heap
// growth for the page allocator, such as mapping in new memory
// for summaries. It also updates the length of the slices in
-// [.summary.
+// p.summary.
//
// base is the base of the newly-added heap memory and limit is
// the first address past the end of the newly-added heap memory.