]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix typo in mapextra comment
authorcch123 <buaa.cch@gmail.com>
Mon, 2 Jul 2018 04:32:48 +0000 (04:32 +0000)
committerKeith Randall <khr@golang.org>
Mon, 2 Jul 2018 06:08:26 +0000 (06:08 +0000)
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>
src/runtime/map.go

index 0e00f12974d7ba63e8097df0af403023489064c2..208c92cb0d75f8809c4157690ad0d336d58bdbc6 100644 (file)
@@ -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.