]> git.lizzy.rs Git - rust.git/commitdiff
fix up lifetimes
authorAlexis Beingessner <a.beingessner@gmail.com>
Sat, 18 Jul 2015 18:44:41 +0000 (11:44 -0700)
committerAlexis Beingessner <a.beingessner@gmail.com>
Sat, 18 Jul 2015 18:44:41 +0000 (11:44 -0700)
src/doc/tarpl/lifetimes.md

index 7282e4d843cfd128286f1bd861ff9fcdbf56a600..350a4ead1309442d1083d2f04e80e9c0d5626018 100644 (file)
@@ -66,11 +66,7 @@ let y = &x;
 z = y;
 ```
 
-The borrow checker always tries to minimize the extent of a lifetime, so it will
-likely desugar to something like the following:
-
 ```rust,ignore
-// NOTE: `'a: {` and `foo = &'b x` is not valid syntax!
 'a: {
     let x: i32 = 0;
     'b: {
@@ -191,8 +187,6 @@ println!("{}", x);
         'c: {
             // Temporary scope because we don't need the
             // &mut to last any longer.
-
-            // NOTE: Vec::push is not valid syntax
             Vec::push(&'c mut data, 4);
         }
         println!("{}", x);