The example code uses trigger_callback(), not do_callback().

This commit is contained in:
Damien Grassart 2014-09-12 09:03:15 +02:00
parent 805cf81b77
commit 0eedec560c

View File

@ -243,7 +243,7 @@ void trigger_callback() {
}
~~~~
In this example Rust's `main()` will call `do_callback()` in C,
In this example Rust's `main()` will call `trigger_callback()` in C,
which would, in turn, call back to `callback()` in Rust.