File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/unsafe-rust/unsafe-functions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ fn main() {
33
33
1.82 with ` unsafe extern ` blocks.
34
34
- ` abs ` must be explicitly marked as ` safe ` because it is an external function
35
35
(FFI). Calling external functions is usually only a problem when those
36
- functions do things with pointers which which might violate Rust's memory
37
- model, but in general any C function might have undefined behaviour under any
38
- arbitrary circumstances.
36
+ functions do things with pointers which might violate Rust's memory model, but
37
+ in general any C function might have undefined behaviour under any arbitrary
38
+ circumstances.
39
39
- The ` "C" ` in this example is the ABI;
40
40
[ other ABIs are available too] ( https://doc.rust-lang.org/reference/items/external-blocks.html ) .
41
41
- Note that there is no verification that the Rust function signature matches
You can’t perform that action at this time.
0 commit comments