Skip to content

Commit 8e60a75

Browse files
committed
Merge pull request #7 from xuewuhen/unstable
fix dict.c comments
2 parents 15b5669 + b70b8b0 commit 8e60a75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dict.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ static unsigned long rev(unsigned long v) {
12281228
* (in binary) 1111. The position of a key in the hash table will be always
12291229
* the last four bits of the hash output, and so forth.
12301230
*
1231-
* 举个例子,如果当前哈希表的大小为 64
1231+
* 举个例子,如果当前哈希表的大小为 16
12321232
* 那么它的掩码就是二进制值 1111 ,
12331233
* 这个哈希表的所有位置都可以使用哈希值的最后四个二进制位来记录。
12341234
*
@@ -1248,7 +1248,7 @@ static unsigned long rev(unsigned long v) {
12481248
* either 0 or 1, can be targeted only by keys that we already visited
12491249
* when scanning the bucket 1100 in the smaller hash table.
12501250
*
1251-
* 如果这时哈希表将大小改为 64 ,那么哈希表的 mask 将变为 11111
1251+
* 如果这时哈希表将大小改为 64 ,那么哈希表的 mask 将变为 111111
12521252
*
12531253
* By iterating the higher bits first, because of the inverted counter, the
12541254
* cursor does not need to restart if the table size gets bigger, and will

0 commit comments

Comments
 (0)