re-do deepaksirone's fix on the actual source file
[rust-101.git] / workspace / src / part12.rs
index 390b5dfa9530880a48a3feac7997154dcf774184..1593e8ab03ecb0fe55b060f40179c3dcc96a2d81 100644 (file)
@@ -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;