X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/63b7a79069a399c32d575bb71832fcad134117c9..a845c41ee688b4a32c196d847a3a94349736cfd8:/workspace/src/part12.rs?ds=sidebyside diff --git a/workspace/src/part12.rs b/workspace/src/part12.rs index 390b5df..1593e8a 100644 --- 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 if the `count` into the environment closure. + // Again, we have to move ownership of 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;