From 247c298f842af4f08c89d1ab984a08c2f28a6be2 Mon Sep 17 00:00:00 2001 From: Bartosz Zbytniewski <50180524+devzbysiu@users.noreply.github.com> Date: Wed, 29 Nov 2023 18:50:50 +0100 Subject: [PATCH] fix: typo --- src/fifth-layout-basics-redux.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fifth-layout-basics-redux.md b/src/fifth-layout-basics-redux.md index 0346d3d..74a4490 100644 --- a/src/fifth-layout-basics-redux.md +++ b/src/fifth-layout-basics-redux.md @@ -111,7 +111,7 @@ So instead we're going to use the very nice [Box::into_raw][] function: > let x = unsafe { Box::from_raw(ptr) }; > ``` -Nice, that looks *literally* designed for our use case. It also matches the rules we're trying to follow: start with safe stuff, turn into into raw pointers, and then only convert back to safe stuff at the end (when we want to Drop it). +Nice, that looks *literally* designed for our use case. It also matches the rules we're trying to follow: start with safe stuff, turn into raw pointers, and then only convert back to safe stuff at the end (when we want to Drop it). This is basically exactly like doing the weird `real_next` thing but without having to faff around storing the Box when it's the exact same pointer as the raw pointer anyway.