Skip to content

Commit c97673c

Browse files
committed
fix up lifetimes
1 parent b79d279 commit c97673c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/doc/tarpl/lifetimes.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,7 @@ let y = &x;
6666
z = y;
6767
```
6868

69-
The borrow checker always tries to minimize the extent of a lifetime, so it will
70-
likely desugar to something like the following:
71-
7269
```rust,ignore
73-
// NOTE: `'a: {` and `foo = &'b x` is not valid syntax!
7470
'a: {
7571
let x: i32 = 0;
7672
'b: {
@@ -191,8 +187,6 @@ println!("{}", x);
191187
'c: {
192188
// Temporary scope because we don't need the
193189
// &mut to last any longer.
194-
195-
// NOTE: Vec::push is not valid syntax
196190
Vec::push(&'c mut data, 4);
197191
}
198192
println!("{}", x);

0 commit comments

Comments
 (0)