Doc: Fix C-Code Example in FFI Docs
Add missing void* for passed RustObject.
This commit is contained in:
parent
a6e0c76ef4
commit
c6f9b8ff17
@ -298,7 +298,7 @@ fn main() {
|
||||
C code:
|
||||
|
||||
~~~~c
|
||||
typedef void (*rust_callback)(int32_t);
|
||||
typedef void (*rust_callback)(void*, int32_t);
|
||||
void* cb_target;
|
||||
rust_callback cb;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user