Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 0153b76

Browse files
committed
Rename foreach variable to get rid of shadowing
1 parent 489ee95 commit 0153b76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/internal/utf.d

+2-2
Original file line numberDiff line numberDiff line change
@@ -651,9 +651,9 @@ string toUTF8(const scope wchar[] s)
651651
else
652652
{
653653
r.length = i;
654-
foreach (dchar c; s[i .. slen])
654+
foreach (dchar ch; s[i .. slen])
655655
{
656-
encode(r, c);
656+
encode(r, ch);
657657
}
658658
break;
659659
}

0 commit comments

Comments
 (0)