diff options
| author | r00ster91 <r00ster91@proton.me> | 2023-07-04 10:34:31 -0400 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2023-09-19 15:15:05 +0300 |
| commit | ee4ced96833470f9432e6a5dc5b31534457280c0 (patch) | |
| tree | 8d35dc654895f029e23ce710367b839814ed5cd9 /src/type.zig | |
| parent | 3e79315d19c7dfe5f9b90185d8030209ef8dd829 (diff) | |
| download | zig-ee4ced96833470f9432e6a5dc5b31534457280c0.tar.gz zig-ee4ced96833470f9432e6a5dc5b31534457280c0.zip | |
write function types consistently with a space before `fn` keyword
Currently, the compiler (like @typeName) writes it `fn(...) Type` but
zig fmt writes it `fn (...) Type` (notice the space after `fn`).
This inconsistency is now resolved and function types are consistently
written the zig fmt way. Before this there were more `fn (...) Type`
occurrences than `fn(...) Type` already.
Diffstat (limited to 'src/type.zig')
| -rw-r--r-- | src/type.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/type.zig b/src/type.zig index 32d207bfbf..71548d793a 100644 --- a/src/type.zig +++ b/src/type.zig @@ -364,7 +364,7 @@ pub const Type = struct { if (fn_info.is_noinline) { try writer.writeAll("noinline "); } - try writer.writeAll("fn("); + try writer.writeAll("fn ("); const param_types = fn_info.param_types.get(&mod.intern_pool); for (param_types, 0..) |param_ty, i| { if (i != 0) try writer.writeAll(", "); |
