mirror of https://github.com/rust-lang/rfcs
Update text/XXX-unwind-FFI.md
Fix typo caught in review Co-Authored-By: bjorn3 <bjorn3@users.noreply.github.com>
This commit is contained in:
parent
306de900c2
commit
51339410c1
|
@ -82,7 +82,7 @@ unwinding across the FFI boundary is well-defined and safe,
|
||||||
and in fact it can be a useful way to handle errors
|
and in fact it can be a useful way to handle errors
|
||||||
when working with certain C libraries, such as `libjpeg`.
|
when working with certain C libraries, such as `libjpeg`.
|
||||||
|
|
||||||
Thus, the `may_panic` function may be makred `#[unwind(allow)]`,
|
Thus, the `may_panic` function may be marked `#[unwind(allow)]`,
|
||||||
which ensures that the unwinding operation will be propagated to the caller
|
which ensures that the unwinding operation will be propagated to the caller
|
||||||
rather than aborting the process.
|
rather than aborting the process.
|
||||||
This annotation will also prevent the compiler
|
This annotation will also prevent the compiler
|
||||||
|
|
Loading…
Reference in New Issue