From f37e0b25f0c6ea13d36e28f89e68f91bed96eb5a Mon Sep 17 00:00:00 2001 From: zhenya-1007 <102388922+zhenya-1007@users.noreply.github.com> Date: Wed, 29 Jun 2022 13:50:35 -0700 Subject: [PATCH 1/2] Update lifetimes.md Get rid of the obviously wrong (and potentially confusing) double lifetime annotation. My guess as to the etiology is an errant copy-and-paste. --- src/lifetimes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lifetimes.md b/src/lifetimes.md index ef86b7b5..67595a04 100644 --- a/src/lifetimes.md +++ b/src/lifetimes.md @@ -55,7 +55,7 @@ likely desugar to the following: let y: &'b i32 = &'b x; 'c: { // ditto on 'c - let z: &'c &'b i32 = &'c y; + let z: &'c i32 = &'c y; } } } From 6018eccdf60dddc0a7753a8ace53431d5a5f5725 Mon Sep 17 00:00:00 2001 From: zhenya-1007 <102388922+zhenya-1007@users.noreply.github.com> Date: Thu, 30 Jun 2022 07:33:09 -0700 Subject: [PATCH 2/2] Update lifetimes.md Add a comment that would have made the reading smoother for me, at least. --- src/lifetimes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lifetimes.md b/src/lifetimes.md index 67595a04..f55ea8c2 100644 --- a/src/lifetimes.md +++ b/src/lifetimes.md @@ -55,7 +55,7 @@ likely desugar to the following: let y: &'b i32 = &'b x; 'c: { // ditto on 'c - let z: &'c i32 = &'c y; + let z: &'c &'b i32 = &'c y; // "a reference to a reference to an i32" (with lifetimes annotated) } } }