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:
CodingInvoker 2021-05-06 13:02:52 +08:00 committed by GitHub
parent 5ffab573ca
commit 22b323e6b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;