From 49c9ba692eaef508e93e1cced9527ccd952d601f Mon Sep 17 00:00:00 2001 From: Igor Petruk Date: Mon, 23 Jan 2023 16:15:54 +0000 Subject: [PATCH] Update static-and-const.md (#215) Let's not use the word "lifetime" just yet. It is arguably the heaviest topic in Rust and it was not yet introduced. --- src/basic-syntax/static-and-const.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic-syntax/static-and-const.md b/src/basic-syntax/static-and-const.md index 470f506e..800ae7e9 100644 --- a/src/basic-syntax/static-and-const.md +++ b/src/basic-syntax/static-and-const.md @@ -38,7 +38,7 @@ fn main() { } ``` -As noted in the [Rust RFC Book][1], these are not inlined upon use and have an actual associated memory location. This is useful for unsafe and embedded code, and have a `'static` lifetime. +As noted in the [Rust RFC Book][1], these are not inlined upon use and have an actual associated memory location. This is useful for unsafe and embedded code, and the variable lives through the entirety of the program execution. We will look at mutating static data in the [chapter on Unsafe Rust](../unsafe.md).