Skip to content

Commit 06ca0bf

Browse files
committed
Style improvement
1 parent 2e5c339 commit 06ca0bf

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/lifetime-elision.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ compiler can infer a sensible default choice.
55

66
## Lifetime elision in functions
77

8-
In order to make common patterns more ergonomic, Rust allows lifetime argument
9-
to be *elided* in [function item], [function pointer] and [closure trait]
10-
signatures. The following rules are used to infer lifetime parameters for
11-
elided lifetimes. It is an error to elide lifetime parameters that cannot be
12-
inferred. The placeholder lifetime, `'_`, can also be used to have a lifetime
13-
inferred in the same way. For lifetimes in paths, using `'_` is preferred.
14-
Trait object lifetimes follow different rules discussed
8+
In order to make common patterns more ergonomic, lifetime arguments can be
9+
*elided* in [function item], [function pointer] and [closure trait] signatures.
10+
The following rules are used to infer lifetime parameters for elided lifetimes.
11+
It is an error to elide lifetime parameters that cannot be inferred. The
12+
placeholder lifetime, `'_`, can also be used to have a lifetime inferred in the
13+
same way. For lifetimes in paths, using `'_` is preferred. Trait object
14+
lifetimes follow different rules discussed
1515
[below](#default-trait-object-lifetimes).
1616

1717
* Each elided lifetime in the parameters becomes a distinct lifetime parameter.

0 commit comments

Comments
 (0)