diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-12-09 13:30:53 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-12-09 13:30:53 -0500 |
| commit | 5d82744f1cb3ea66c20fc377d0237a50ccbcf81e (patch) | |
| tree | a5da5c96fe71492cbf5d29a2e96b6cfe45a3793e /lib/std | |
| parent | 640e09183d3100c477a26c6cdc26f1eae31472a1 (diff) | |
| download | zig-5d82744f1cb3ea66c20fc377d0237a50ccbcf81e.tar.gz zig-5d82744f1cb3ea66c20fc377d0237a50ccbcf81e.zip | |
ability to give comptime and non-comptime types to same parameter
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/fmt.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/fmt.zig b/lib/std/fmt.zig index a0871d52a6..f557e716a5 100644 --- a/lib/std/fmt.zig +++ b/lib/std/fmt.zig @@ -469,6 +469,7 @@ pub fn formatType( .Fn => { return format(context, Errors, output, "{}@{x}", .{ @typeName(T), @ptrToInt(value) }); }, + .Type => return output(context, @typeName(T)), else => @compileError("Unable to format type '" ++ @typeName(T) ++ "'"), } } |
