mirror of
https://github.com/golang/go
synced 2024-11-06 13:36:12 -07:00
runtime: fix typo in mapextra comment
This commit is contained in:
parent
28f9b880f6
commit
a8c2b27046
@ -126,7 +126,7 @@ type mapextra struct {
|
|||||||
// If both key and value do not contain pointers and are inline, then we mark bucket
|
// 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.
|
// type as containing no pointers. This avoids scanning such maps.
|
||||||
// However, bmap.overflow is a pointer. In order to keep overflow buckets
|
// 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 and oldoverflow are only used if key and value do not contain pointers.
|
||||||
// overflow contains overflow buckets for hmap.buckets.
|
// overflow contains overflow buckets for hmap.buckets.
|
||||||
// oldoverflow contains overflow buckets for hmap.oldbuckets.
|
// oldoverflow contains overflow buckets for hmap.oldbuckets.
|
||||||
|
Loading…
Reference in New Issue
Block a user