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

@@ -17,5 +17,5 @@ export fn entry() usize {
// backend=stage2
// target=native
//
// :1:38: error: expected type 'fn(i32) i32', found 'fn(i32) callconv(.C) i32'
// :1:38: error: expected type 'fn (i32) i32', found 'fn (i32) callconv(.C) i32'
// :1:38: note: calling convention 'C' cannot cast into calling convention 'Unspecified'