Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 22b323e

Browse files
CodingInvokerJiachen Zhoutrekhleb
authoredMay 6, 2021
update linkedlist comment (trekhleb#687)
Co-authored-by: Jiachen Zhou <[email protected]> Co-authored-by: Oleksii Trekhleb <[email protected]>
1 parent 5ffab57 commit 22b323e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/data-structures/linked-list/LinkedList.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default class LinkedList {
6565

6666
let deletedNode = null;
6767

68-
// If the head must be deleted then make next node that is differ
68+
// If the head must be deleted then make next node that is different
6969
// from the head to be a new head.
7070
while (this.head && this.compare.equal(this.head.value, value)) {
7171
deletedNode = this.head;

0 commit comments

Comments
 (0)