Skip to content

Fixup style from extern fn panic commit #200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/items/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ branch of the conditional.
## Extern functions

Extern functions are part of Rust's foreign function interface, providing the
opposite functionality to [external blocks](items/external-blocks.html). Whereas external
opposite functionality to [external blocks]. Whereas external
blocks allow Rust code to call foreign code, extern functions with bodies
defined in Rust code _can be called by foreign code_. They are defined in the
same way as any other Rust function, except that they have the `extern`
Expand All @@ -165,4 +165,8 @@ same type as the functions declared in an extern block.
let fptr: extern "C" fn() -> i32 = new_i32;
```

As non-Rust calling conventions do not support unwinding, unwinding past the end of an extern function will cause the process to abort (in LLVM, this is implemented by executing an illegal instruction).
As non-Rust calling conventions do not support unwinding, unwinding past the end
of an extern function will cause the process to abort. In LLVM, this is
implemented by executing an illegal instruction.

[external blocks]: items/external-blocks.html