From 22b323e6b112a85210369f48bf9044d9fa9c6371 Mon Sep 17 00:00:00 2001 From: CodingInvoker <71058225+CodingInvoker@users.noreply.github.com> Date: Thu, 6 May 2021 13:02:52 +0800 Subject: [PATCH] update linkedlist comment (#687) Co-authored-by: Jiachen Zhou Co-authored-by: Oleksii Trekhleb --- src/data-structures/linked-list/LinkedList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data-structures/linked-list/LinkedList.js b/src/data-structures/linked-list/LinkedList.js index 1fb0b5eaf..71c2b4975 100644 --- a/src/data-structures/linked-list/LinkedList.js +++ b/src/data-structures/linked-list/LinkedList.js @@ -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;