Skip to content

Commit d6fbd21

Browse files
authored
fix: typo in "unsafe external functions" (#2724)
1 parent 059e75b commit d6fbd21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/unsafe-rust/unsafe-functions/extern-c.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ fn main() {
3333
1.82 with `unsafe extern` blocks.
3434
- `abs` must be explicitly marked as `safe` because it is an external function
3535
(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.
3939
- The `"C"` in this example is the ABI;
4040
[other ABIs are available too](https://doc.rust-lang.org/reference/items/external-blocks.html).
4141
- Note that there is no verification that the Rust function signature matches

0 commit comments

Comments
 (0)