projects
/
rust-101.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4b42151
)
Clarified exercise 11.1.
author
Torsten Scheck
<torsten.scheck@gmx.de>
Fri, 30 Jun 2017 08:40:42 +0000
(10:40 +0200)
committer
Torsten Scheck
<torsten.scheck@gmx.de>
Fri, 30 Jun 2017 08:40:42 +0000
(10:40 +0200)
src/part11.rs
patch
|
blob
|
history
diff --git
a/src/part11.rs
b/src/part11.rs
index 513440143eb453873fe2be46a74176b9350c4f6d..757f2057e814a57ff6f9aec5d316f4957ae65675 100644
(file)
--- 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
// **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)
//@ [index](main.html) | [previous](part10.html) | [raw source](workspace/src/part11.rs) | [next](part12.html)