Skip to content

Commit 66aedb4

Browse files
Mike Krishercarols10cents
Mike Krisher
authored andcommitted
Small wording changes
1 parent 4d988c7 commit 66aedb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ch10-03-lifetime-syntax.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ 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 only must annotate types
11+
just like most of the time, types are inferred. We must only annotate types
1212
when multiple types are possible. In a similar way, we must 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.
1616

17-
Annotating lifetimes is not even a concept most other programming languages
17+
Annotating lifetimes is not a concept most other programming languages
1818
have, so this is going to feel unfamiliar. Although we won’t cover lifetimes in
1919
their entirety in this chapter, we’ll discuss common ways you might encounter
2020
lifetime syntax so you can get comfortable with the concept.

0 commit comments

Comments
 (0)