From 35dba241f30a319d0b265761f6d836a860b0cca3 Mon Sep 17 00:00:00 2001 From: Robert Oswald Date: Thu, 24 Aug 2023 18:32:47 +0200 Subject: [PATCH] fixed a typo in the lifetime.md --- src/scope/lifetime.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scope/lifetime.md b/src/scope/lifetime.md index 68b42d3809..01c4bf4050 100644 --- a/src/scope/lifetime.md +++ b/src/scope/lifetime.md @@ -1,6 +1,6 @@ # Lifetimes -A *lifetime* is a construct of the compiler (or more specifically, its *borrow +A *lifetime* is a construct the compiler (or more specifically, its *borrow checker*) uses to ensure all borrows are valid. Specifically, a variable's lifetime begins when it is created and ends when it is destroyed. While lifetimes and scopes are often referred to together, they are not the same.