Skip to content

Commit

Permalink
Merge pull request #377 from edoardocostantinidev/typo/lifetime-mismatch
Browse files Browse the repository at this point in the history
[typo] typo on limits of lifetime chapter
  • Loading branch information
ehuss authored Aug 3, 2022
2 parents 8d1e4dc + 37be7ea commit 7378da1
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 @@ -76,7 +76,7 @@ care about, but the lifetime system is too coarse-grained to handle that.
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
before the second one occurs. This is caused by Rust conservatively falling back
to using a whole scope for the first borow. This will eventually get fixed.
to using a whole scope for the first borrow. This will eventually get fixed.

```rust,compile_fail
# use std::collections::HashMap;
Expand Down

0 comments on commit 7378da1

Please sign in to comment.