From ed022fc51a1c45e08be12bab65bc1cfd39d32a0d Mon Sep 17 00:00:00 2001 From: yuk1ty Date: Thu, 5 Oct 2023 22:39:44 +0900 Subject: [PATCH] Capitalize the first letter in the Pinning chapter --- src/04_pinning/01_chapter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/04_pinning/01_chapter.md b/src/04_pinning/01_chapter.md index cf04ace..b169f99 100644 --- a/src/04_pinning/01_chapter.md +++ b/src/04_pinning/01_chapter.md @@ -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`.