1
Fork 0

catch_unwind intrinsic: document return value

This commit is contained in:
Ralf Jung 2025-03-21 10:33:47 +01:00
parent 5d85a714b1
commit 244e92ba5c

View file

@ -3002,6 +3002,7 @@ pub const fn discriminant_value<T>(v: &T) -> <T as DiscriminantKind>::Discrimina
/// Rust's "try catch" construct for unwinding. Invokes the function pointer `try_fn` with the
/// data pointer `data`, and calls `catch_fn` if unwinding occurs while `try_fn` runs.
/// Returns `1` if unwinding occurred and `catch_fn` was called; returns `0` otherwise.
///
/// `catch_fn` must not unwind.
///