From 79c827006daff12f82bd2969f60f2f3c6f579d87 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Wed, 19 Jun 2019 16:43:24 +0200 Subject: [PATCH] Remove duplicate word --- blog/content/second-edition/posts/10-heap-allocation/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/content/second-edition/posts/10-heap-allocation/index.md b/blog/content/second-edition/posts/10-heap-allocation/index.md index af77eaf6..5a5fa2b7 100644 --- a/blog/content/second-edition/posts/10-heap-allocation/index.md +++ b/blog/content/second-edition/posts/10-heap-allocation/index.md @@ -36,7 +36,7 @@ After the `inner` function returns, its part of the call stack is popped again a ![The call stack containing only the local variables of outer](call-stack-return.svg) -We see that the local variables of `inner` only live until the function returns. The Rust compiler enforces these lifetimes and throws an error when we for example try to to return a reference to a local variable: +We see that the local variables of `inner` only live until the function returns. The Rust compiler enforces these lifetimes and throws an error when we for example try to return a reference to a local variable: ```rust fn inner(i: usize) -> &'static u32 {