Skip to content

Commit d4b2edc

Browse files
committed
1 parent 0eedec5 commit d4b2edc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/guide-ffi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ A basic example is:
209209
Rust code:
210210

211211
~~~~no_run
212-
extern fn callback(a:i32) {
212+
extern fn callback(a: i32) {
213213
println!("I'm called from C with value {0}", a);
214214
}
215215
@@ -269,7 +269,7 @@ struct RustObject {
269269
// other members
270270
}
271271
272-
extern "C" fn callback(target: *mut RustObject, a:i32) {
272+
extern "C" fn callback(target: *mut RustObject, a: i32) {
273273
println!("I'm called from C with value {0}", a);
274274
unsafe {
275275
// Update the value in RustObject with the value received from the callback

0 commit comments

Comments
 (0)