Skip to content

Commit 4f56020

Browse files
committed
Show the output
1 parent e49e48b commit 4f56020

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ffi.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,8 @@ gcc call_rust.c -o call_rust -lrust_from_c -L./target/debug
305305
Finally, we can call Rust code from C with `LD_LIBRARY_PATH` specified:
306306

307307
```sh
308-
LD_LIBRARY_PATH=./target/debug ./call_rust
308+
$ LD_LIBRARY_PATH=./target/debug ./call_rust
309+
Hello from Rust!
309310
```
310311

311312
That's it!

0 commit comments

Comments
 (0)