Skip to content

Commit 5228bfa

Browse files
authored
Merge pull request #3539 from paldepind/patch-1
Fix typo in ch10-03
2 parents 81e74f9 + af8e97d commit 5228bfa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ch10-03-lifetime-syntax.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -432,11 +432,11 @@ The patterns programmed into Rust’s analysis of references are called the
432432
a set of particular cases that the compiler will consider, and if your code
433433
fits these cases, you don’t need to write the lifetimes explicitly.
434434

435-
The elision rules don’t provide full inference. If Rust deterministically
436-
applies the rules but there is still ambiguity as to what lifetimes the
437-
references have, the compiler won’t guess what the lifetime of the remaining
438-
references should be. Instead of guessing, the compiler will give you an error
439-
that you can resolve by adding the lifetime annotations.
435+
The elision rules don’t provide full inference. If there is still ambiguity as
436+
to what lifetimes the references have after Rust applies the rules, the
437+
compiler won’t guess what the lifetime of the remaining references should be.
438+
Instead of guessing, the compiler will give you an error that you can resolve
439+
by adding the lifetime annotations.
440440

441441
Lifetimes on function or method parameters are called *input lifetimes*, and
442442
lifetimes on return values are called *output lifetimes*.

0 commit comments

Comments
 (0)