We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0eedec5 commit d4b2edcCopy full SHA for d4b2edc
src/doc/guide-ffi.md
@@ -209,7 +209,7 @@ A basic example is:
209
Rust code:
210
211
~~~~no_run
212
-extern fn callback(a:i32) {
+extern fn callback(a: i32) {
213
println!("I'm called from C with value {0}", a);
214
}
215
@@ -269,7 +269,7 @@ struct RustObject {
269
// other members
270
271
272
-extern "C" fn callback(target: *mut RustObject, a:i32) {
+extern "C" fn callback(target: *mut RustObject, a: i32) {
273
274
unsafe {
275
// Update the value in RustObject with the value received from the callback
0 commit comments