mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
添加// 注释
This commit is contained in:
parent
9e07a4c7b9
commit
056b37e3ea
@ -359,7 +359,7 @@ E unlink(Node<E> x) {
|
|||||||
|
|
||||||
//删除前驱指针
|
//删除前驱指针
|
||||||
if (prev == null) {
|
if (prev == null) {
|
||||||
first = next;如果删除的节点是头节点,令头节点指向该节点的后继节点
|
first = next;//如果删除的节点是头节点,令头节点指向该节点的后继节点
|
||||||
} else {
|
} else {
|
||||||
prev.next = next;//将前驱节点的后继节点指向后继节点
|
prev.next = next;//将前驱节点的后继节点指向后继节点
|
||||||
x.prev = null;
|
x.prev = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user