Skip to content

Commit

Permalink
remove octal literals
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Apr 2, 2011
1 parent 919eec2 commit 88904f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/format.d
Original file line number Diff line number Diff line change
Expand Up @@ -1942,7 +1942,7 @@ here:
stream.clear; formattedWrite(stream, "%#X", 0xABCD);
assert(stream.data == "0XABCD");

stream.clear; formattedWrite(stream, "%#o", 012345);
stream.clear; formattedWrite(stream, "%#o", octal!12345);
assert(stream.data == "012345");
stream.clear; formattedWrite(stream, "%o", 9);
assert(stream.data == "11");
Expand Down Expand Up @@ -3812,7 +3812,7 @@ unittest
r = std.string.format("%#X", 0xABCD);
assert(r == "0XABCD");

r = std.string.format("%#o", 012345);
r = std.string.format("%#o", octal!12345);
assert(r == "012345");
r = std.string.format("%o", 9);
assert(r == "11");
Expand Down

0 comments on commit 88904f7

Please sign in to comment.