diff --git a/docs/java/collection/concurrent-hash-map-source-code.md b/docs/java/collection/concurrent-hash-map-source-code.md index 2422b36c..32203cfe 100644 --- a/docs/java/collection/concurrent-hash-map-source-code.md +++ b/docs/java/collection/concurrent-hash-map-source-code.md @@ -328,7 +328,7 @@ private void rehash(HashEntry node) { HashEntry e = oldTable[i]; if (e != null) { HashEntry next = e.next; - // 计算新的位置,新的位置只可能是不便或者是老的位置+老的容量。 + // 计算新的位置,新的位置只可能是不变或者是老的位置+老的容量。 int idx = e.hash & sizeMask; if (next == null) // Single node on list // 如果当前位置还不是链表,只是一个元素,直接赋值 @@ -337,7 +337,7 @@ private void rehash(HashEntry node) { // 如果是链表了 HashEntry lastRun = e; int lastIdx = idx; - // 新的位置只可能是不便或者是老的位置+老的容量。 + // 新的位置只可能是不变或者是老的位置+老的容量。 // 遍历结束后,lastRun 后面的元素位置都是相同的 for (HashEntry last = next; last != null; last = last.next) { int k = last.hash & sizeMask;