X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/0c5e5d86510258f57cf2c1f23479b675e14c50d3..c27b94f8e36d136f81f799ca1ae205988cf3d36e:/src/part11.rs?ds=inline diff --git a/src/part11.rs b/src/part11.rs index 5134401..757f205 100644 --- a/src/part11.rs +++ b/src/part11.rs @@ -115,6 +115,6 @@ pub fn main() { // **Exercise 11.1**: We made the arbitrary choice of using `i32` for the arguments. Generalize the data structures above // to work with an arbitrary type `T` that's passed to the callbacks. Since you need to call multiple callbacks with the -// same `t: T`, you will either have to restrict `T` to `Copy` types, or pass a reference. +// same `val: T` (in our `call` function), you will either have to restrict `T` to `Copy` types, or pass a reference. //@ [index](main.html) | [previous](part10.html) | [raw source](workspace/src/part11.rs) | [next](part12.html)