authorgravatar for nilsjuto@posteo.netNils Juto <nilsjuto@posteo.net> 2026-02-27 13:50:12+01:00
committergravatar for nilsjuto@posteo.netNils Juto <nilsjuto@posteo.net> 2026-02-27 13:50:12+01:00
log2da1370a7e8d378ab810c581d5e009b27b47fa62
tree0ccbb2ce5d22d80268d0ce2f65a6299882aa2843
parentbbc77df3eb91b9c9dc6b334cd344670f64c4a457

sync `CallModifier` in langref with what's actually there


1 files changed, 1 insertions(+), 4 deletions(-)

doc/langref/builtin.CallModifier struct.zig +1-4
...@@ -2,9 +2,6 @@ pub const CallModifier = enum {...@@ -2,9 +2,6 @@ pub const CallModifier = enum {
2 /// Equivalent to function call syntax.2 /// Equivalent to function call syntax.
3 auto,3 auto,
44
5 /// Equivalent to async keyword used with function call syntax.
6 async_kw,
7
8 /// Prevents tail call optimization. This guarantees that the return5 /// Prevents tail call optimization. This guarantees that the return
9 /// address will point to the callsite, as opposed to the callsite's6 /// address will point to the callsite, as opposed to the callsite's
10 /// callsite. If the call is otherwise required to be tail-called7 /// callsite. If the call is otherwise required to be tail-called
...@@ -17,7 +14,7 @@ pub const CallModifier = enum {...@@ -17,7 +14,7 @@ pub const CallModifier = enum {
1714
18 /// Asserts that the function call will not suspend. This allows a15 /// Asserts that the function call will not suspend. This allows a
19 /// non-async function to call an async function.16 /// non-async function to call an async function.
20 no_async,17 no_suspend,
2118
22 /// Guarantees that the call will be generated with tail call optimization.19 /// Guarantees that the call will be generated with tail call optimization.
23 /// If this is not possible, a compile error is emitted instead.20 /// If this is not possible, a compile error is emitted instead.