From 3914d41582886720ba9747a362fe9d59f3d2f97e Mon Sep 17 00:00:00 2001 From: Santosh Shrestha Date: Tue, 22 Apr 2025 21:07:20 +0545 Subject: [PATCH] docs: mark illustrative 'static lifetime example with `ignore` The example demonstrating `'static` lifetime usage is not meant to be compiled. Changed the code block annotation from `editable` to `ignore` to better reflect its purpose and avoid confusion. --- src/scope/lifetime/static_lifetime.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scope/lifetime/static_lifetime.md b/src/scope/lifetime/static_lifetime.md index 637add302c..ec1b75ea67 100644 --- a/src/scope/lifetime/static_lifetime.md +++ b/src/scope/lifetime/static_lifetime.md @@ -3,7 +3,7 @@ Rust has a few reserved lifetime names. One of those is `'static`. You might encounter it in two situations: -```rust, editable +```rust, ignore // A reference with 'static lifetime: let s: &'static str = "hello world";