From 8f0abb4aefb389346bee226da34086e0370c2011 Mon Sep 17 00:00:00 2001 From: Eirik Tsarpalis Date: Wed, 14 Jul 2021 12:35:09 +0100 Subject: [PATCH] remove superfluous comment Fix #55389 --- .../src/System/Collections/Generic/LinkedList.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Collections/src/System/Collections/Generic/LinkedList.cs b/src/libraries/System.Collections/src/System/Collections/Generic/LinkedList.cs index cd2718696213ac..00431d4eeb47b0 100644 --- a/src/libraries/System.Collections/src/System/Collections/Generic/LinkedList.cs +++ b/src/libraries/System.Collections/src/System/Collections/Generic/LinkedList.cs @@ -177,7 +177,7 @@ public void Clear() while (current != null) { LinkedListNode temp = current; - current = current.Next; // use Next the instead of "next", otherwise it will loop forever + current = current.Next; temp.Invalidate(); }