| author | |
| committer | |
| log | 48d3fbef5c3eb0c146979d3156c094fb23f45e8e |
| tree | 1369c6722cd6bfe786bf6838e34cc9191478e248 |
| parent | 1a5c3e4501589d50920489caed01ac344bc6f72a |
\x00 was printed as 0 and \x0E was printed as E;
\x00 now correctly prints 00 and \x0E correctly prints 0E;1 files changed, 1 insertions(+), 1 deletions(-)
std/fmt/index.zig+1-1| ... | ... | @@ -352,7 +352,7 @@ pub fn formatText( |
| 352 | 352 | return formatBuf(bytes, width, context, Errors, output); |
| 353 | 353 | } else if ((fmt[0] == 'x') or (fmt[0] == 'X') ) { |
| 354 | 354 | for (bytes) |c| { |
| 355 | try formatInt(c, 16, fmt[0] == 'X', 0, context, Errors, output); | |
| 355 | try formatInt(c, 16, fmt[0] == 'X', 2, context, Errors, output); | |
| 356 | 356 | } |
| 357 | 357 | return; |
| 358 | 358 | } else @compileError("Unknown format character: " ++ []u8{fmt[0]}); |