From 01b1274429f7c0ebc22f84da5b6940a42fc9679f Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sat, 7 May 2022 10:18:47 +0900 Subject: [PATCH] Update src/lifetime-mismatch.md --- src/lifetime-mismatch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lifetime-mismatch.md b/src/lifetime-mismatch.md index 6899465..0494d49 100644 --- a/src/lifetime-mismatch.md +++ b/src/lifetime-mismatch.md @@ -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 borow. This will eventually get fixed. ```rust,compile_fail # use std::collections::HashMap;