We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cceca8 commit fae3335Copy full SHA for fae3335
src/doc/book/ffi.md
@@ -600,7 +600,7 @@ use std::os::raw::c_int;
600
601
extern "C" {
602
/// Register the callback.
603
- fn register(Option<extern "C" fn(Option<extern "C" fn(c_int) -> c_int>, c_int) -> c_int>);
+ fn register(cb: Option<extern "C" fn(Option<extern "C" fn(c_int) -> c_int>, c_int) -> c_int>);
604
}
605
606
/// This fairly useless function receives a function pointer and an integer
0 commit comments