Skip to content

Commit 0d92da6

Browse files
authored
Merge pull request cch123#19 from mcrwayfun/read-source-code
修改map扩容描述错误
2 parents 83bc809 + b8319ce commit 0d92da6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

map.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ func evacuate(t *maptype, h *hmap, oldbucket uintptr) {
870870
// 1111
871871
// 所以实际上这个就是
872872
// xxx1xxx & 1000 > 0
873-
// 说明这个元素在扩容后一定会去上半区
873+
// 说明这个元素在扩容后一定会去下半区,即Y部分
874874
// 所以就是 useY 了
875875
if hash&newbit != 0 {
876876
useY = 1

0 commit comments

Comments
 (0)