Skip to content

Commit 1c23997

Browse files
authored
Update InsertNewlines.cs (#44168)
1 parent 5b7eabd commit 1c23997

File tree

1 file changed

+1
-1
lines changed
  • docs/standard/base-types/snippets/character-encoding-introduction/csharp

1 file changed

+1
-1
lines changed

docs/standard/base-types/snippets/character-encoding-introduction/csharp/InsertNewlines.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static string InsertNewlinesEveryTenTextElements(string input)
3535
while (enumerator.MoveNext())
3636
{
3737
builder.Append(enumerator.Current);
38-
if (textElementCount % 10 == 0 && textElementCount > 0)
38+
if (textElementCount % 10 == 0)
3939
{
4040
builder.AppendLine(); // newline
4141
}

0 commit comments

Comments
 (0)