Doc: Fix C-Code Example in FFI Docs

Add missing void* for passed RustObject.
This commit is contained in:
Gil Cottle 2014-10-13 01:36:10 -04:00
parent a6e0c76ef4
commit c6f9b8ff17
1 changed files with 1 additions and 1 deletions

View File

@ -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;