Showing with 2 additions and 2 deletions.
  1. +2 −2 std/format.d
4 changes: 2 additions & 2 deletions std/format.d
Original file line number Diff line number Diff line change
Expand Up @@ -1185,9 +1185,9 @@ struct FormatSpec(Char)

while (tr.length)
{
if (*tr.ptr == '%')
if (tr[0] == '%')
{
if (tr.length > 1 && tr.ptr[1] == '%')
if (tr.length > 1 && tr[1] == '%')
{
tr = tr[2 .. $];
w.put('%');
Expand Down