Skip to content

Commit 07bbd04

Browse files
myyraklepvdrz
authored andcommitted
Docs: Fix example code error
1 parent af26991 commit 07bbd04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: book/src/tutorial-3.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn main() {
3030
.header("wrapper.h")
3131
// Tell cargo to invalidate the built crate whenever any of the
3232
// included header files changed.
33-
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
33+
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
3434
// Finish the builder and generate the bindings.
3535
.generate()
3636
// Unwrap the Result and panic on failure.

0 commit comments

Comments
 (0)