From fae33352721c4b4d6fbdc66520043ae721121d77 Mon Sep 17 00:00:00 2001 From: Alex Burka Date: Mon, 13 Jun 2016 21:10:12 -0400 Subject: [PATCH] extern fns require named parameters Not sure the example is going to stay, but I can try to pass Travis for the bragging rights. --- src/doc/book/ffi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/book/ffi.md b/src/doc/book/ffi.md index 4a55db38d38..74c99273fa2 100644 --- a/src/doc/book/ffi.md +++ b/src/doc/book/ffi.md @@ -600,7 +600,7 @@ use std::os::raw::c_int; extern "C" { /// Register the callback. - fn register(Option c_int>, c_int) -> c_int>); + fn register(cb: Option c_int>, c_int) -> c_int>); } /// This fairly useless function receives a function pointer and an integer