mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 22:09:49 +00:00
parent
30427ff794
commit
0c16912733
@ -703,10 +703,7 @@ pub fn formatType(
|
||||
}
|
||||
try writer.writeAll(" }");
|
||||
},
|
||||
.Fn => {
|
||||
if (actual_fmt.len != 0) invalidFmtError(fmt, value);
|
||||
return format(writer, "{s}@{x}", .{ @typeName(T), @ptrToInt(value) });
|
||||
},
|
||||
.Fn => @compileError("unable to format function body type, use '*const " ++ @typeName(T) ++ "' for a function pointer type"),
|
||||
.Type => {
|
||||
if (actual_fmt.len != 0) invalidFmtError(fmt, value);
|
||||
return formatBuf(@typeName(value), options, writer);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user