From 02da234267b2fa2f2e348bbd64b42da3623f9b2a Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Wed, 28 May 2025 17:17:14 -0400 Subject: [PATCH] Use 'required' rather than 'have to' to avoid ambiguity "only have to" has connotations of "the action is minimal" not "the action is required" to me --- src/ch10-03-lifetime-syntax.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ch10-03-lifetime-syntax.md b/src/ch10-03-lifetime-syntax.md index 6b369f1a5..6b881da62 100644 --- a/src/ch10-03-lifetime-syntax.md +++ b/src/ch10-03-lifetime-syntax.md @@ -8,11 +8,12 @@ One detail we didn’t discuss in the [“References and Borrowing”][references-and-borrowing] section in Chapter 4 is that every reference in Rust has a _lifetime_, which is the scope for which that reference is valid. Most of the time, lifetimes are implicit and inferred, -just like most of the time, types are inferred. We only have to annotate types -when multiple types are possible. In a similar way, we have to annotate lifetimes -when the lifetimes of references could be related in a few different ways. Rust -requires us to annotate the relationships using generic lifetime parameters to -ensure the actual references used at runtime will definitely be valid. +just like most of the time, types are inferred. We are only required to +annotate types when multiple types are possible. In a similar way, we have to +annotate lifetimes when the lifetimes of references could be related in a few +different ways. Rust requires us to annotate the relationships using generic +lifetime parameters to ensure the actual references used at runtime will +definitely be valid. Annotating lifetimes is not even a concept most other programming languages have, so this is going to feel unfamiliar. Although we won’t cover lifetimes in