Update 02_future.md

Fix typo
This commit is contained in:
Kartik Prajapati 2023-11-22 00:11:29 +05:30 committed by GitHub
parent ed022fc51a
commit 33b26b1276
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,