From 0ca16b6fea68cc982e86ea57f065269f6385f77d Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Fri, 26 May 2023 17:59:12 +0200 Subject: [PATCH] Fix typo in compile-time.md (#700) From #675 via @cydave. --- src/why-rust/compile-time.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/why-rust/compile-time.md b/src/why-rust/compile-time.md index 75f20941..a3418721 100644 --- a/src/why-rust/compile-time.md +++ b/src/why-rust/compile-time.md @@ -16,7 +16,7 @@ Static memory management at compile time: It is possible to produce memory leaks in (safe) Rust. Some examples are: -* You can for use [`Box::leak`] to leak a pointer. A use of this could +* You can use [`Box::leak`] to leak a pointer. A use of this could be to get runtime-initialized and runtime-sized static variables * You can use [`std::mem::forget`] to make the compiler "forget" about a value (meaning the destructor is never run).