commit 2da1370a7e8d378ab810c581d5e009b27b47fa62 (tree)
parent bbc77df3eb91b9c9dc6b334cd344670f64c4a457
Author: Nils Juto <nilsjuto@posteo.net>
Date: Fri, 27 Feb 2026 13:50:12 +0100
sync `CallModifier` in langref with what's actually there
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/doc/langref/builtin.CallModifier struct.zig b/doc/langref/builtin.CallModifier struct.zig
@@ -2,9 +2,6 @@ pub const CallModifier = enum {
/// Equivalent to function call syntax.
auto,
- /// Equivalent to async keyword used with function call syntax.
- async_kw,
-
/// Prevents tail call optimization. This guarantees that the return
/// address will point to the callsite, as opposed to the callsite's
/// callsite. If the call is otherwise required to be tail-called
@@ -17,7 +14,7 @@ pub const CallModifier = enum {
/// Asserts that the function call will not suspend. This allows a
/// non-async function to call an async function.
- no_async,
+ no_suspend,
/// Guarantees that the call will be generated with tail call optimization.
/// If this is not possible, a compile error is emitted instead.