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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue