From be061609482dc8c3a221ab67b93e4773eb7f62ff Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 20 Oct 2024 10:30:04 +0200 Subject: [PATCH] attempt to clarify 'static' unique address guarantees --- src/items/static-items.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/items/static-items.md b/src/items/static-items.md index f688a9024..6f3f48600 100644 --- a/src/items/static-items.md +++ b/src/items/static-items.md @@ -8,7 +8,7 @@ > [^extern-safety]: The `safe` and `unsafe` function qualifiers are only > allowed semantically within `extern` blocks. -A *static item* is similar to a [constant], except that it represents a precise +A *static item* is similar to a [constant], except that it represents a unique memory location in the program. All references to the static refer to the same memory location. Static items have the `static` lifetime, which outlives all other lifetimes in a Rust program. Static items do not call [`drop`] at the