Use a space after colons per the Rust coding style:
https://github.com/rust-lang/rust-guidelines/blob/master/style/whitespace.md
This commit is contained in:
parent
0eedec560c
commit
d4b2edc3ee
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user