Skip to content

Commit 21fcf73

Browse files
authored
Merge pull request #4284 from reitzig/patch-1
Ch. 10.3: clarify language detail
2 parents 05f17f0 + f6bd152 commit 21fcf73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ch10-03-lifetime-syntax.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ One detail we didn’t discuss in the [“References and
88
Borrowing”][references-and-borrowing]<!-- ignore --> section in Chapter 4 is
99
that every reference in Rust has a _lifetime_, which is the scope for which
1010
that reference is valid. Most of the time, lifetimes are implicit and inferred,
11-
just like most of the time, types are inferred. We must annotate types only
12-
when multiple types are possible. In a similar way, we must annotate lifetimes
11+
just like most of the time, types are inferred. We only have to annotate types
12+
when multiple types are possible. In a similar way, we have to annotate lifetimes
1313
when the lifetimes of references could be related in a few different ways. Rust
1414
requires us to annotate the relationships using generic lifetime parameters to
1515
ensure the actual references used at runtime will definitely be valid.

0 commit comments

Comments
 (0)