Skip to content

Commit

Permalink
Update 02_future.md
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
Kartik1397 authored Nov 21, 2023
1 parent ed022fc commit 33b26b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/02_execution/02_future.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 33b26b1

Please sign in to comment.