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

Commit ab2e18c

Browse files
authored
Merge pull request #2791 from RazvanN7/Rename_var
Rename foreach variable to get rid of shadowing merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2 parents 489ee95 + 0153b76 commit ab2e18c

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)