commit ed87c67aea803187adcfafb987f056f52ea00a79
parent d742e7ff32ec12b64bbc22f06f6151dcbc85406b
Author: Drew DeVault <sir@cmpwn.com>
Date: Fri, 5 Feb 2021 11:46:45 -0500
fmt: style
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/fmt/fmt.ha b/fmt/fmt.ha
@@ -65,13 +65,13 @@ export fn errorf(fmt: str, args: formattable...) (io::error | size) =
fn format(out: *io::stream, arg: formattable) void = match (arg) {
s: str => io::write(out, strings::to_utf8(s)),
- v: *void => format(out, v: uintptr), // TODO: Hexadecimal
- p: uintptr => {
- let s = strconv::uptrtos(p);
- io::write(out, strings::to_utf8(s));
- },
n: types::numeric => {
let s = strconv::numerictos(n);
io::write(out, strings::to_utf8(s));
},
+ p: uintptr => {
+ let s = strconv::uptrtos(p);
+ io::write(out, strings::to_utf8(s));
+ },
+ v: *void => format(out, v: uintptr), // TODO: Hexadecimal
};