Skip to content

Commit 8ebb339

Browse files
authored
Fix infinite loop (#4479)
1 parent f088ef0 commit 8ebb339

File tree

1 file changed

+1
-1
lines changed
  • samples/snippets/csharp/VS_Snippets_CLR_System/System.ArgumentOutOfRangeException/cs

1 file changed

+1
-1
lines changed

samples/snippets/csharp/VS_Snippets_CLR_System/System.ArgumentOutOfRangeException/cs/FindWords1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static String[] FindWords(String s)
2424
if (end - start > 0)
2525
words.Add(s.Substring(start, end - start));
2626

27-
start = end++;
27+
start = end + 1;
2828
}
2929
else {
3030
if (start < s.Length - 1)

0 commit comments

Comments
 (0)