From: Torsten Scheck Date: Fri, 30 Jun 2017 08:40:42 +0000 (+0200) Subject: Clarified exercise 11.1. X-Git-Url: https://git.ralfj.de/rust-101.git/commitdiff_plain/622b08f3275766cc575a4a09986f14bfbe64ac64?hp=--cc Clarified exercise 11.1. --- 622b08f3275766cc575a4a09986f14bfbe64ac64 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)