Skip to content

Commit 9700924

Browse files
committed
fix typo
1 parent 167244c commit 9700924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Linked_list/linked_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def reverse(self):
114114
# current.next_node = prev # 反转当前节点的下一个节点指向前一节点
115115
# prev = current # 前一个节点变成当前节点
116116
# current = _temp # 节点偏移/迭代
117-
'''The above code equate to the follow.'''
117+
'''The above code equals to the follow.'''
118118
current.next_node, prev, current = prev, current, current.next_node
119119
self.head = prev # 原来的链表头指向新的链表头
120120

0 commit comments

Comments
 (0)