diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/System.ArgumentOutOfRangeException/cs/FindWords1.cs b/samples/snippets/csharp/VS_Snippets_CLR_System/System.ArgumentOutOfRangeException/cs/FindWords1.cs index 5f2faeb6b6f..6aa32cd1b35 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/System.ArgumentOutOfRangeException/cs/FindWords1.cs +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/System.ArgumentOutOfRangeException/cs/FindWords1.cs @@ -24,7 +24,7 @@ static String[] FindWords(String s) if (end - start > 0) words.Add(s.Substring(start, end - start)); - start = end++; + start = end + 1; } else { if (start < s.Length - 1)