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:
committed by
Veikka Tuominen
parent
3e79315d19
commit
ee4ced9683
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user