Skip to content

Commit 686c07b

Browse files
authored
💬 update LinkedHashMap
1 parent 8c8f061 commit 686c07b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MD/collection/LinkedHashMap.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
`LinkedHashMap` 的实现:
188188

189189
```java
190-
//就是判断是否是根据访问顺序排序,如果是则需要将当前这个 Entry 移动到链表的末尾
190+
//就是判断是否是根据访问顺序排序,如果是则需要将当前这个 Entry 移动到链表的末尾
191191
void recordAccess(HashMap<K,V> m) {
192192
LinkedHashMap<K,V> lm = (LinkedHashMap<K,V>)m;
193193
if (lm.accessOrder) {
@@ -196,4 +196,4 @@
196196
addBefore(lm.header);
197197
}
198198
}
199-
```
199+
```

0 commit comments

Comments
 (0)