diff options
| author | bors <bors@rust-lang.org> | 2015-10-06 17:57:00 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-10-06 17:57:00 +0000 |
| commit | e7b6056048885e3ff5161dd981b65daa01dac68c (patch) | |
| tree | 60b8006b46a0553fbf84eefd55f386c0432eb12e | |
| parent | 2f60768e840fd186ccd7812e95dd6e46a54bc432 (diff) | |
| parent | f490f5171e3557af3264c0aa5dbb4bb49e3c72b3 (diff) | |
| download | rust-e7b6056048885e3ff5161dd981b65daa01dac68c.tar.gz rust-e7b6056048885e3ff5161dd981b65daa01dac68c.zip | |
Auto merge of #28842 - chrisccerami:patch-1, r=steveklabnik
| -rw-r--r-- | src/doc/trpl/lifetimes.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/doc/trpl/lifetimes.md b/src/doc/trpl/lifetimes.md index fb2fc83e062..4896be714bb 100644 --- a/src/doc/trpl/lifetimes.md +++ b/src/doc/trpl/lifetimes.md @@ -70,9 +70,12 @@ 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 elide 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, let’s break the explicit example down: +[lifetime-elision]: #user-content-lifetime-elision + ```rust,ignore fn bar<'a>(...) ``` |
