mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-07 23:04:34 +01:00
sync CallModifier in langref with what's actually there
This commit is contained in:
parent
bbc77df3eb
commit
2da1370a7e
1 changed files with 1 additions and 4 deletions
|
|
@ -2,9 +2,6 @@ pub const CallModifier = enum {
|
||||||
/// Equivalent to function call syntax.
|
/// Equivalent to function call syntax.
|
||||||
auto,
|
auto,
|
||||||
|
|
||||||
/// Equivalent to async keyword used with function call syntax.
|
|
||||||
async_kw,
|
|
||||||
|
|
||||||
/// Prevents tail call optimization. This guarantees that the return
|
/// Prevents tail call optimization. This guarantees that the return
|
||||||
/// address will point to the callsite, as opposed to the callsite's
|
/// address will point to the callsite, as opposed to the callsite's
|
||||||
/// callsite. If the call is otherwise required to be tail-called
|
/// 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
|
/// Asserts that the function call will not suspend. This allows a
|
||||||
/// non-async function to call an async function.
|
/// non-async function to call an async function.
|
||||||
no_async,
|
no_suspend,
|
||||||
|
|
||||||
/// Guarantees that the call will be generated with tail call optimization.
|
/// Guarantees that the call will be generated with tail call optimization.
|
||||||
/// If this is not possible, a compile error is emitted instead.
|
/// If this is not possible, a compile error is emitted instead.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue