projects
/
rust-101.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5cee5c
)
update auto-gen files
author
Ralf Jung
<post@ralfj.de>
Tue, 7 Jun 2016 13:39:31 +0000
(15:39 +0200)
committer
Ralf Jung
<post@ralfj.de>
Tue, 7 Jun 2016 13:39:31 +0000
(15:39 +0200)
workspace/src/part12.rs
patch
|
blob
|
history
diff --git
a/workspace/src/part12.rs
b/workspace/src/part12.rs
index 390b5dfa9530880a48a3feac7997154dcf774184..1593e8ab03ecb0fe55b060f40179c3dcc96a2d81 100644
(file)
--- a/
workspace/src/part12.rs
+++ b/
workspace/src/part12.rs
@@
-46,7
+46,7
@@
pub fn main() {
fn demo_cell(c: &mut Callbacks) {
{
let count = Cell::new(0);
- // Again, we have to move ownership
i
f the `count` into the environment closure.
+ // Again, we have to move ownership
o
f the `count` into the environment closure.
c.register(move |val| {
// In here, all we have is a shared reference of our environment. But that's good enough for the `get` and `set` of the cell!
let new_count = count.get()+1;