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/Sema.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/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index 4475cfc008..db2a189929 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -6722,7 +6722,7 @@ fn zirCall( { const return_ty = sema.typeOf(call_inst); if (modifier != .always_tail and return_ty.isNoReturn(mod)) - return call_inst; // call to "fn(...) noreturn", don't pop + return call_inst; // call to "fn (...) noreturn", don't pop // TODO: we don't fix up the error trace for always_tail correctly, we should be doing it // *before* the recursive call. This will be a bit tricky to do and probably requires |
