Skip to content

Commit e7b6056

Browse files
committed
Auto merge of #28842 - chrisccerami:patch-1, r=steveklabnik
2 parents 2f60768 + f490f51 commit e7b6056

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/doc/trpl/lifetimes.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,12 @@ fn bar<'a>(x: &'a i32) {
7070
```
7171

7272
The `'a` reads ‘the lifetime a’. Technically, every reference has some lifetime
73-
associated with it, but the compiler lets you elide them in common cases.
73+
associated with it, but the compiler lets you elide (i.e. omit, see
74+
["Lifetime Elision"][lifetime-elision] below) them in common cases.
7475
Before we get to that, though, let’s break the explicit example down:
7576

77+
[lifetime-elision]: #user-content-lifetime-elision
78+
7679
```rust,ignore
7780
fn bar<'a>(...)
7881
```

0 commit comments

Comments
 (0)