Skip to content

Commit fae3335

Browse files
committed
extern fns require named parameters
Not sure the example is going to stay, but I can try to pass Travis for the bragging rights.
1 parent 1cceca8 commit fae3335

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/ffi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ use std::os::raw::c_int;
600600

601601
extern "C" {
602602
/// Register the callback.
603-
fn register(Option<extern "C" fn(Option<extern "C" fn(c_int) -> c_int>, c_int) -> c_int>);
603+
fn register(cb: Option<extern "C" fn(Option<extern "C" fn(c_int) -> c_int>, c_int) -> c_int>);
604604
}
605605

606606
/// This fairly useless function receives a function pointer and an integer

0 commit comments

Comments
 (0)