Link to 'Lifetime Elision' section at first use of elide

This commit is contained in:
Chris C Cerami 2015-10-05 11:40:32 -04:00
parent 915cf01cb6
commit e39808cba8

View File

@ -70,9 +70,11 @@ fn bar<'a>(x: &'a i32) {
```
The `'a` reads the lifetime a. Technically, every reference has some lifetime
associated with it, but the compiler lets you omit them in common cases.
associated with it, but the compiler lets you elide (i.e. omit, see ["Lifetime Elision"][lifetime-elision] below) them in common cases.
Before we get to that, though, lets break the explicit example down:
[lifetime-elision]: #user-content-lifetime-elision
```rust,ignore
fn bar<'a>(...)
```