]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/maps: fix typo in group.go comment (H1 -> H2)
authorArtyom Litovets <artemltvc@gmail.com>
Fri, 14 Feb 2025 12:03:06 +0000 (12:03 +0000)
committerGopher Robot <gobot@golang.org>
Sun, 16 Feb 2025 14:25:04 +0000 (06:25 -0800)
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 <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/internal/runtime/maps/group.go

index f3e9d4d12b9b7ee7ca1a17e307f1022357e02add..6414ee5b9b03b98b8d5b311db311f07585d02120 100644 (file)
@@ -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