From bc5f1307abf93562ab5c42c36b77894fd5a968a0 Mon Sep 17 00:00:00 2001 From: Amer Redzovic Date: Tue, 14 Jan 2025 20:13:59 +0100 Subject: [PATCH] fix typo --- src/02_execution/02_future.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/02_execution/02_future.md b/src/02_execution/02_future.md index 8d1c1e4c..181ca8bc 100644 --- a/src/02_execution/02_future.md +++ b/src/02_execution/02_future.md @@ -60,7 +60,7 @@ real `Future` trait and how it is different. {{#include ../../examples/02_02_future_trait/src/lib.rs:real_future}} ``` -The first change you'll notice is that our `self` type is no longer `&mut Self`, +The first change you'll notice is that our `self` type is no longer `&mut self`, but has changed to `Pin<&mut Self>`. We'll talk more about pinning in [a later section][pinning], but for now know that it allows us to create futures that are immovable. Immovable objects can store pointers between their fields,