Skip to content

Commit da619e2

Browse files
authored
Merge pull request Snailclimb#1768 from rentianle2022/main
fix typo: 422行中代码段//注释的错误格式
2 parents 6a19c26 + c079032 commit da619e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/java/collection/concurrent-hash-map-source-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ public V get(Object key) {
419419
private final Node<K,V>[] initTable() {
420420
Node<K,V>[] tab; int sc;
421421
while ((tab = table) == null || tab.length == 0) {
422-
// 如果 sizeCtl < 0 ,说明另外的线程执行CAS 成功,正在进行初始化。
422+
// 如果 sizeCtl < 0 ,说明另外的线程执行CAS 成功,正在进行初始化。
423423
if ((sc = sizeCtl) < 0)
424424
// 让出 CPU 使用权
425425
Thread.yield(); // lost initialization race; just spin

0 commit comments

Comments
 (0)