projects
/
rust-101.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update Rustonomicon link
[rust-101.git]
/
src
/
part11.rs
diff --git
a/src/part11.rs
b/src/part11.rs
index 5cc14622651e51e6006435141ad942725296e036..9d093e38163296786605f76b1e2af38a6cc2592a 100644
(file)
--- a/
src/part11.rs
+++ b/
src/part11.rs
@@
-42,7
+42,7
@@
impl Callbacks {
// Registration simply stores the callback.
pub fn register(&mut self, callback: Box<FnMut(i32)>) {
// Registration simply stores the callback.
pub fn register(&mut self, callback: Box<FnMut(i32)>) {
- self.callbacks.push(callback);
/*@*/
+ self.callbacks.push(callback);
}
// We can also write a generic version of `register`, such that it will be instantiated with some concrete closure type `F`
}
// We can also write a generic version of `register`, such that it will be instantiated with some concrete closure type `F`