Skip to content

Commit 49c9ba6

Browse files
authored
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.
1 parent c116ef8 commit 49c9ba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/basic-syntax/static-and-const.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn main() {
3838
}
3939
```
4040

41-
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.
41+
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.
4242

4343

4444
We will look at mutating static data in the [chapter on Unsafe Rust](../unsafe.md).

0 commit comments

Comments
 (0)