minor change

This commit is contained in:
koniifer 2024-12-17 02:10:30 +00:00
parent d907df14dd
commit e2dd379fea

View file

@ -90,7 +90,7 @@ format_inner := fn($T: type, v: T, str: ^u8, opts: FormatOptions): uint {
return @inline(format_bool, v, str) return @inline(format_bool, v, str)
} else if float(T) { } else if float(T) {
return @inline(format_float, T, v, str, opts.decimal_digits) return @inline(format_float, T, v, str, opts.decimal_digits)
} else { } else if !primitive(T) {
i := 0 i := 0
// name := @nameof(T) // name := @nameof(T)
// len := string.length(name) // len := string.length(name)
@ -112,8 +112,9 @@ format_inner := fn($T: type, v: T, str: ^u8, opts: FormatOptions): uint {
i += 1 i += 1
} }
return len return len
} else {
panic("Unsupported formatter type\0")
} }
panic("Unsupported formatter type\0")
} }
/* TODO: /* TODO: