Skip to content

Commit

Permalink
[std/net/isemail] Fix foreach ref index
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrel authored and dlang-bot committed Apr 17, 2024
1 parent 80235ea commit 7740a85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion std/net/isemail.d
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ if (isSomeChar!(Char))
auto endOrDie = false;
auto crlfCount = int.min; // int.min == not defined

foreach (ref i, e ; email)
for (size_t i; i < email.length; i++)
{
auto e = email[i];
token = email.get(i, e);

switch (context)
Expand Down

0 comments on commit 7740a85

Please sign in to comment.