diff --git a/fmt.zig b/fmt.zig index f9730b87e4d5928500e25c156f864e001fc4075e..cda3c3d21f3450b9d03e7aacf2ece06b294ccbb1 100644 --- a/fmt.zig +++ b/fmt.zig @@ -756,8 +756,7 @@ pub fn formatInt(value: anytype, base: u8, case: Case, options: FormatOptions, w fn formatValue(value: anytype, comptime fmt: []const u8, options: FormatOptions, writer: anytype) !void { const T = @TypeOf(value); switch (@typeInfo(T)) { - // .float, .comptime_float => return formatFloatValue(value, fmt, options, writer), - .float, .comptime_float => @compileError("TODO"), + .float, .comptime_float => return formatFloatValue(value, fmt, options, writer), .int, .comptime_int => return formatIntValue(value, fmt, options, writer), .bool => return formatBuf(if (value) "true" else "false", options, writer), else => comptime unreachable,