commit 2a3d0336ce771b0ea1a7581eb9d0e650649fc54a
parent dd7980bdc8f1655b894817e23578bc2d0dfce278
Author: Byron Torres <b@torresjrjr.com>
Date: Thu, 11 Jan 2024 12:54:10 +0000
printlistline(): use precision modifier
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/print.ha b/print.ha
@@ -76,7 +76,7 @@ fn printlistline(text: str) (size | io::error) = {
case =>
if (!ascii::isprint(r))
// XXX: assuming r is ascii
- yield fmt::printf("\\{:o_03}", r: u32)?
+ yield fmt::printf("\\{:o.3}", r: u32)?
else
yield fmt::print(r)?;
};