aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/map.go
diff options
context:
space:
mode:
authorcch123 <buaa.cch@gmail.com>2018-07-02 04:32:48 +0000
committerKeith Randall <khr@golang.org>2018-07-02 06:08:26 +0000
commit5110d19fc2986b702ba0cfcbeacfe692154c77b1 (patch)
treee6f4b168dd6df3c1721c56e08d7f6852f3a97726 /src/runtime/map.go
parent28f9b880f6e9f95c61b31b6e0a7ac458cb6a0e0c (diff)
downloadgo-5110d19fc2986b702ba0cfcbeacfe692154c77b1.tar.gz
go-5110d19fc2986b702ba0cfcbeacfe692154c77b1.zip
runtime: fix typo in mapextra comment
Change-Id: Idbd8a1b5bfeb1c23c86cef0697cf0380900e95f3 GitHub-Last-Rev: a8c2b27046582c4eef932a8502826a3b23b8dab3 GitHub-Pull-Request: golang/go#26175 Reviewed-on: https://go-review.googlesource.com/121821 Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/runtime/map.go')
-rw-r--r--src/runtime/map.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/map.go b/src/runtime/map.go
index 0e00f12974..208c92cb0d 100644
--- a/src/runtime/map.go
+++ b/src/runtime/map.go
@@ -126,7 +126,7 @@ type mapextra struct {
// If both key and value do not contain pointers and are inline, then we mark bucket
// type as containing no pointers. This avoids scanning such maps.
// However, bmap.overflow is a pointer. In order to keep overflow buckets
- // alive, we store pointers to all overflow buckets in hmap.overflow and h.map.oldoverflow.
+ // alive, we store pointers to all overflow buckets in hmap.extra.overflow and hmap.extra.oldoverflow.
// overflow and oldoverflow are only used if key and value do not contain pointers.
// overflow contains overflow buckets for hmap.buckets.
// oldoverflow contains overflow buckets for hmap.oldbuckets.