projects
/
rust-101.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix some language
[rust-101.git]
/
workspace
/
src
/
part11.rs
diff --git
a/workspace/src/part11.rs
b/workspace/src/part11.rs
index 746aed9e96398b6b03cc8f033cdeec25764919a2..a93ad07ed684bb301ac3d14b501f68cfe7713b97 100644
(file)
--- a/
workspace/src/part11.rs
+++ b/
workspace/src/part11.rs
@@
-59,7
+59,7
@@
pub fn main() {
}
}
-// **Exercise 11.1**: We made the arbitrary choice of using `i32` for the arguments. Generalize the data
-
structures above
+// **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
// 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
borrow
.
+// same `t: T`, you will either have to restrict `T` to `Copy` types, or pass a
reference
.