remove superfluous comment (#55634)
authorEirik Tsarpalis <eirik.tsarpalis@gmail.com>
Wed, 14 Jul 2021 12:32:27 +0000 (15:32 +0300)
committerGitHub <noreply@github.com>
Wed, 14 Jul 2021 12:32:27 +0000 (08:32 -0400)
Fix #55389

src/libraries/System.Collections/src/System/Collections/Generic/LinkedList.cs

index cd2718696213accf9b84988fee9d1b096f98efc3..00431d4eeb47b00d8fb564a8434119ac1de76f6a 100644 (file)
@@ -177,7 +177,7 @@ namespace System.Collections.Generic
             while (current != null)
             {
                 LinkedListNode<T> temp = current;
-                current = current.Next;   // use Next the instead of "next", otherwise it will loop forever
+                current = current.Next;
                 temp.Invalidate();
             }