From dcd8ee63a875260255350c0a69c35a958b4cca37 Mon Sep 17 00:00:00 2001 From: Ron Evans Date: Mon, 4 Apr 2022 23:45:16 +0200 Subject: [PATCH] Revert "src/runtime/hashmap: comments for iterator structure" This reverts commit 8872229a0bcf6369e78935640995004cea6f34e1. --- src/runtime/hashmap.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/runtime/hashmap.go b/src/runtime/hashmap.go index 1da9e962..c8c12419 100644 --- a/src/runtime/hashmap.go +++ b/src/runtime/hashmap.go @@ -41,11 +41,11 @@ type hashmapBucket struct { } type hashmapIterator struct { - buckets unsafe.Pointer // pointer to array of hashapBuckets - numBuckets uintptr // length of buckets array - bucketNumber uintptr // current index into buckets array - bucket *hashmapBucket // current bucket in chain - bucketIndex uint8 // current index into bucket + buckets unsafe.Pointer + numBuckets uintptr + bucketNumber uintptr + bucket *hashmapBucket + bucketIndex uint8 } // Get the topmost 8 bits of the hash, without using a special value (like 0).