diff options
| author | Gil Cottle <rc@redtown.org> | 2014-10-13 01:36:10 -0400 |
|---|---|---|
| committer | Gil Cottle <rc@redtown.org> | 2014-10-13 01:36:10 -0400 |
| commit | c6f9b8ff17e9ca45b12e50af2de8815bd63c7cab (patch) | |
| tree | 3996091c2e489d049aa56e233c0f73e63b46c2e5 | |
| parent | a6e0c76ef4b8ed87698dc9fe51e952039d33b913 (diff) | |
| download | rust-c6f9b8ff17e9ca45b12e50af2de8815bd63c7cab.tar.gz rust-c6f9b8ff17e9ca45b12e50af2de8815bd63c7cab.zip | |
Doc: Fix C-Code Example in FFI Docs
Add missing void* for passed RustObject.
| -rw-r--r-- | src/doc/guide-ffi.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/guide-ffi.md b/src/doc/guide-ffi.md index 14e60b5ba08..ee398334e2a 100644 --- a/src/doc/guide-ffi.md +++ b/src/doc/guide-ffi.md @@ -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; |
