Skip to content

Commit 3914d41

Browse files
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.
1 parent 0d7964d commit 3914d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scope/lifetime/static_lifetime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Rust has a few reserved lifetime names. One of those is `'static`. You
44
might encounter it in two situations:
55

6-
```rust, editable
6+
```rust, ignore
77
// A reference with 'static lifetime:
88
let s: &'static str = "hello world";
99

0 commit comments

Comments
 (0)