Skip to content

Commit

Permalink
Merge pull request #1905 from hkBst/patch-1
Browse files Browse the repository at this point in the history
Fix typo in static_lifetime.md
  • Loading branch information
marioidival authored Jan 3, 2025
2 parents 0933975 + 7f722c8 commit 28b7ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scope/lifetime/static_lifetime.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ a program's life, they can be created while the program is executed. Just to
demonstrate, the below example uses
[`Box::leak`](https://doc.rust-lang.org/std/boxed/struct.Box.html#method.leak)
to dynamically create `'static` references. In that case it definitely doesn't
live for the entire duration, but only for the leaking point onward.
live for the entire duration, but only from the leaking point onward.

```rust,editable,compile_fail
extern crate rand;
Expand Down

0 comments on commit 28b7ec6

Please sign in to comment.