From d5b75e40462c2b357df96de3083705d8ea4c8954 Mon Sep 17 00:00:00 2001 From: Artyom Litovets Date: Fri, 14 Feb 2025 12:03:06 +0000 Subject: [PATCH] runtime/maps: fix typo in group.go comment (H1 -> H2) Fixes a typo to correctly describe the hash bits of the control word. Change-Id: Id3c2ae0bd529e579a95258845f9d8028e23d10d2 GitHub-Last-Rev: 1baa81be5d292d5625d5d7788b8ea090453f962c GitHub-Pull-Request: golang/go#71730 Reviewed-on: https://go-review.googlesource.com/c/go/+/649416 Reviewed-by: Keith Randall Auto-Submit: Keith Randall Reviewed-by: Keith Randall LUCI-TryBot-Result: Go LUCI Reviewed-by: Ian Lance Taylor --- src/internal/runtime/maps/group.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/runtime/maps/group.go b/src/internal/runtime/maps/group.go index f3e9d4d12b9b7e..6414ee5b9b03b9 100644 --- a/src/internal/runtime/maps/group.go +++ b/src/internal/runtime/maps/group.go @@ -111,7 +111,7 @@ func bitsetShiftOutLowest(b bitset) bitset { // // empty: 1 0 0 0 0 0 0 0 // deleted: 1 1 1 1 1 1 1 0 -// full: 0 h h h h h h h // h represents the H1 hash bits +// full: 0 h h h h h h h // h represents the H2 hash bits // // TODO(prattmic): Consider inverting the top bit so that the zero value is empty. type ctrl uint8