From: Deepak Sirone Date: Tue, 7 Jun 2016 03:59:49 +0000 (+0530) Subject: Fix if -> of typo X-Git-Url: https://git.ralfj.de/rust-101.git/commitdiff_plain/28649c69648f5358df138ec1c498c78d4ce3ff92?hp=--cc Fix if -> of typo --- 28649c69648f5358df138ec1c498c78d4ce3ff92 diff --git a/src/part12.rs b/src/part12.rs index 62f0868..7d03ca6 100644 --- a/src/part12.rs +++ b/src/part12.rs @@ -71,7 +71,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! //@ At run-time, the `Cell` will be almost entirely compiled away, so this becomes pretty much equivalent to the version