Skip to content

Commit

Permalink
Capitalize the first letter in the Pinning chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
yuk1ty committed Oct 5, 2023
1 parent 1ef20c7 commit 685b5d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/04_pinning/01_chapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ execute_unpin_future(fut); // OK
## Summary

1. If `T: Unpin` (which is the default), then `Pin<'a, T>` is entirely
equivalent to `&'a mut T`. in other words: `Unpin` means it's OK for this type
equivalent to `&'a mut T`. In other words: `Unpin` means it's OK for this type
to be moved even when pinned, so `Pin` will have no effect on such a type.

2. Getting a `&mut T` to a pinned T requires unsafe if `T: !Unpin`.
Expand Down

0 comments on commit 685b5d8

Please sign in to comment.