diff --git a/sysdata/libraries/stn/src/formatters.hb b/sysdata/libraries/stn/src/formatters.hb index be454cc1..e5a15bda 100644 --- a/sysdata/libraries/stn/src/formatters.hb +++ b/sysdata/libraries/stn/src/formatters.hb @@ -182,7 +182,7 @@ FormatOptions := struct { /* SAFETY: * Assumes the buffer is wide enough for the formatted text and a null char */ -format := fn($T: type, v: T, str: ^u8): ^u8 return @inline(format_args, T, v, str, .()) +format := fn($T: type, v: T, str: ^u8): ^u8 return @inline(format_args, T, v, str, .{}) format_args := fn($T: type, v: T, str: ^u8, opts: FormatOptions): ^u8 { @inline(string.clear, str) diff --git a/sysdata/programs/test/src/tests/stn/formatters.hb b/sysdata/programs/test/src/tests/stn/formatters.hb index 171f1411..538f9c86 100644 --- a/sysdata/programs/test/src/tests/stn/formatters.hb +++ b/sysdata/programs/test/src/tests/stn/formatters.hb @@ -20,7 +20,7 @@ test := fn(): uint { radix: 16, })) log.info(format_args(f64, math.LN_2, buffer, .{radix: 16})) - // log.info(format([u8; 3], .(1, 2, 3), buffer)) + log.info(format([u8; 3], .(1, 2, 3), buffer)) log.info(format(^SubThingy, &.(0.0, true), buffer)) return 0