From 7f722c8dc95cd644abf500afa68ef687f99aa26b Mon Sep 17 00:00:00 2001 From: Marijn Schouten Date: Fri, 3 Jan 2025 09:11:41 +0100 Subject: [PATCH] Fix typo in static_lifetime.md --- 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 26f9fab783..637add302c 100644 --- a/src/scope/lifetime/static_lifetime.md +++ b/src/scope/lifetime/static_lifetime.md @@ -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;