aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authorr00ster91 <r00ster91@proton.me>2023-07-04 10:34:31 -0400
committerVeikka Tuominen <git@vexu.eu>2023-09-19 15:15:05 +0300
commitee4ced96833470f9432e6a5dc5b31534457280c0 (patch)
tree8d35dc654895f029e23ce710367b839814ed5cd9 /src/Sema.zig
parent3e79315d19c7dfe5f9b90185d8030209ef8dd829 (diff)
downloadzig-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.zig2
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