Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/ch10-03-lifetime-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ lifetime syntax so that you can get comfortable with the concept.

### Dangling References

The main aim of lifetimes is to prevent dangling references, which, if they
were allowed to exist, would cause a program to reference data other than the
data it’s intended to reference. Consider the program in Listing 10-16, which
has an outer scope and an inner scope.
The main aim of lifetimes is to prevent dangling references, which, if allowed,
would cause a program to reference data other than the data it’s intended to
reference. Consider the program in Listing 10-16, which has an outer scope and
an inner scope.

<Listing number="10-16" caption="An attempt to use a reference whose value has gone out of scope">

Expand Down