Skip to content

Commit 35a8cb8

Browse files
authored
Fix inconsistent test case number in comments and console logs (dotnet#10367)
Test 13's comment incorrectly mentioned "test 11" instead of "test 12." The node (dog) was removed in test 12, not in test 11. This could lead to confusion for future developers reading the code.
1 parent e1ba32a commit 35a8cb8

File tree

1 file changed

+2
-2
lines changed
  • snippets/csharp/System.Collections.Generic/LinkedListT/Overview

1 file changed

+2
-2
lines changed

snippets/csharp/System.Collections.Generic/LinkedListT/Overview/source.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public static void Main()
102102

103103
// Add the node after the node referred to by mark2.
104104
sentence.AddAfter(mark2, current);
105-
IndicateNode(current, "Test 13: Add node removed in test 11 after a referenced node (brown):");
105+
IndicateNode(current, "Test 13: Add node removed in test 12 after a referenced node (brown):");
106106

107107
// The Remove method finds and removes the
108108
// first node that that has the specified value.
@@ -231,7 +231,7 @@ private static void IndicateNode(LinkedListNode<string> node, string test)
231231
//Test 12: Remove current node (dog) and attempt to indicate it:
232232
//Node 'dog' is not in the list.
233233

234-
//Test 13: Add node removed in test 11 after a referenced node (brown):
234+
//Test 13: Add node removed in test 12 after a referenced node (brown):
235235
//the quick brown (dog) jumps over the lazy old fox
236236

237237
//Test 14: Remove node that has the value 'old':

0 commit comments

Comments
 (0)