From dc9f149248de1e5ac3b956c738d0239466589527 Mon Sep 17 00:00:00 2001 From: Coco Liliace Date: Sat, 12 Jul 2025 12:04:01 +0800 Subject: [PATCH] ch17-05: add missing parenthesis --- src/ch17-05-traits-for-async.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch17-05-traits-for-async.md b/src/ch17-05-traits-for-async.md index d4447a34b5..42abb2e0de 100644 --- a/src/ch17-05-traits-for-async.md +++ b/src/ch17-05-traits-for-async.md @@ -286,7 +286,7 @@ the `Box` pointer. Figure 17-6 illustrates this process. In fact, the `Box` pointer can still move around freely. Remember: we care about making sure the data ultimately being referenced stays in place. If a pointer moves around, _but the data it points to is in the same place_, as in Figure -17-7, there’s no potential problem. As an independent exercise, look at the docs +17-7, there’s no potential problem. (As an independent exercise, look at the docs for the types as well as the `std::pin` module and try to work out how you’d do this with a `Pin` wrapping a `Box`.) The key is that the self-referential type itself cannot move, because it is still pinned.