about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/doc/guide-ffi.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/guide-ffi.md b/src/doc/guide-ffi.md
index 237cc86e51d..14e60b5ba08 100644
--- a/src/doc/guide-ffi.md
+++ b/src/doc/guide-ffi.md
@@ -209,7 +209,7 @@ A basic example is:
 Rust code:
 
 ~~~~no_run
-extern fn callback(a:i32) {
+extern fn callback(a: i32) {
     println!("I'm called from C with value {0}", a);
 }
 
@@ -269,7 +269,7 @@ struct RustObject {
     // other members
 }
 
-extern "C" fn callback(target: *mut RustObject, a:i32) {
+extern "C" fn callback(target: *mut RustObject, a: i32) {
     println!("I'm called from C with value {0}", a);
     unsafe {
         // Update the value in RustObject with the value received from the callback