mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-11-10 11:09:43 +08:00
update linkedlist comment (#687)
Co-authored-by: Jiachen Zhou <jiachen.zhou@rea-group.com> Co-authored-by: Oleksii Trekhleb <trehleb@gmail.com>
This commit is contained in:
parent
5ffab573ca
commit
22b323e6b1
@ -65,7 +65,7 @@ export default class LinkedList {
|
||||
|
||||
let deletedNode = null;
|
||||
|
||||
// If the head must be deleted then make next node that is differ
|
||||
// If the head must be deleted then make next node that is different
|
||||
// from the head to be a new head.
|
||||
while (this.head && this.compare.equal(this.head.value, value)) {
|
||||
deletedNode = this.head;
|
||||
|
Loading…
Reference in New Issue
Block a user