File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments