Skip to content

Commit

Permalink
Merge pull request #386 from jamesreprise/patch-1
Browse files Browse the repository at this point in the history
Grammar change for 3.4: Limits of Lifetimes (lifetime-mismatch.md)
  • Loading branch information
ehuss authored Nov 15, 2022
2 parents 0553235 + 6570607 commit 03fbddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lifetime-mismatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ care about, but the lifetime system is too coarse-grained to handle that.
## Improperly reduced borrows

The following code fails to compile, because Rust sees that a variable, `map`,
is borrowed twice, and can not infer that the first borrow stops to be needed
is borrowed twice, and can not infer that the first borrow ceases to be needed
before the second one occurs. This is caused by Rust conservatively falling back
to using a whole scope for the first borrow. This will eventually get fixed.

Expand Down

0 comments on commit 03fbddb

Please sign in to comment.