Skip to content

Commit e147927

Browse files
Merge pull request rust-lang#200 from Havvy/editing
Fixup style from extern fn panic commit
2 parents ca9c708 + e196c5a commit e147927

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/items/functions.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ branch of the conditional.
142142
## Extern functions
143143

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

168-
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).
168+
As non-Rust calling conventions do not support unwinding, unwinding past the end
169+
of an extern function will cause the process to abort. In LLVM, this is
170+
implemented by executing an illegal instruction.
171+
172+
[external blocks]: items/external-blocks.html

0 commit comments

Comments
 (0)