diff --git a/book/src/tutorial-3.md b/book/src/tutorial-3.md index 599ece2708..a8b825ecc8 100644 --- a/book/src/tutorial-3.md +++ b/book/src/tutorial-3.md @@ -33,7 +33,7 @@ fn main() { .header("wrapper.h") // Tell cargo to invalidate the built crate whenever any of the // included header files changed. - .parse_callbacks(Box::new(bindgen::CargoCallbacks)) + .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())) // Finish the builder and generate the bindings. .generate() // Unwrap the Result and panic on failure.