Skip to content

Commit

Permalink
Fix ref foreach range variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrel committed Apr 14, 2024
1 parent c489361 commit 697fb0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/path.d
Original file line number Diff line number Diff line change
Expand Up @@ -3397,7 +3397,7 @@ do
else
{
C[] pattmp;
foreach (ref pi; 0 .. pattern.length)
for (auto pi = 0; pi < pattern.length; pi++)
{
const pc = pattern[pi];
switch (pc)
Expand Down

0 comments on commit 697fb0c

Please sign in to comment.