We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 79b5366 + 51bb051 commit 1f3e4cdCopy full SHA for 1f3e4cd
src/ffi.md
@@ -258,7 +258,7 @@ pub extern "C" fn hello_from_rust() {
258
# fn main() {}
259
```
260
261
-The `extern "C"` makes this function adhere to the C calling convention, as discussed above in "[Foreign Calling Conventions]".
+The `extern "C"` makes this function adhere to the C calling convention, as discussed below in "[Foreign Calling Conventions]".
262
The `no_mangle` attribute turns off Rust's name mangling, so that it has a well defined symbol to link to.
263
264
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