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.
This commit is contained in:
r00ster91
2023-07-04 10:34:31 -04:00
committed by Veikka Tuominen
parent 3e79315d19
commit ee4ced9683
43 changed files with 89 additions and 89 deletions

View File

@@ -24,9 +24,9 @@ pub export fn entry3() void {
// target=native
// backend=stage2
//
// :7:10: error: values of type '[2]fn() void' must be comptime-known, but index value is runtime-known
// :7:10: note: use '*const fn() void' for a function pointer type
// :15:18: error: values of type '[2]fn() void' must be comptime-known, but index value is runtime-known
// :15:17: note: use '*const fn() void' for a function pointer type
// :21:19: error: values of type '[2]fn() void' must be comptime-known, but index value is runtime-known
// :21:18: note: use '*const fn() void' for a function pointer type
// :7:10: error: values of type '[2]fn () void' must be comptime-known, but index value is runtime-known
// :7:10: note: use '*const fn () void' for a function pointer type
// :15:18: error: values of type '[2]fn () void' must be comptime-known, but index value is runtime-known
// :15:17: note: use '*const fn () void' for a function pointer type
// :21:19: error: values of type '[2]fn () void' must be comptime-known, but index value is runtime-known
// :21:18: note: use '*const fn () void' for a function pointer type