From 543c9b1bd76151616a7fc39727fc3030cdf107ee Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Wed, 28 Jul 2021 19:35:06 +0900 Subject: [PATCH] Show the output --- src/ffi.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ffi.md b/src/ffi.md index f9a7812..0f03fa7 100644 --- a/src/ffi.md +++ b/src/ffi.md @@ -297,7 +297,8 @@ gcc call_rust.c -o call_rust -lrust_from_c -L./target/debug Finally, we can call Rust code from C with `LD_LIBRARY_PATH` specified: ```sh -LD_LIBRARY_PATH=./target/debug ./call_rust +$ LD_LIBRARY_PATH=./target/debug ./call_rust +Hello from Rust! ``` That's it!