Skip to content

Commit 1f3e4cd

Browse files
authored
Merge pull request #404 from majaha/patch-2
Change incorrect reference to "above" in ffi.md
2 parents 79b5366 + 51bb051 commit 1f3e4cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ffi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ pub extern "C" fn hello_from_rust() {
258258
# fn main() {}
259259
```
260260

261-
The `extern "C"` makes this function adhere to the C calling convention, as discussed above in "[Foreign Calling Conventions]".
261+
The `extern "C"` makes this function adhere to the C calling convention, as discussed below in "[Foreign Calling Conventions]".
262262
The `no_mangle` attribute turns off Rust's name mangling, so that it has a well defined symbol to link to.
263263

264264
Then, to compile Rust code as a shared library that can be called from C, add the following to your `Cargo.toml`:

0 commit comments

Comments
 (0)