From 79a04ce02558f2845cbb815dd4a1049dc70342fe Mon Sep 17 00:00:00 2001 From: eupn <36292692+eupn@users.noreply.github.com> Date: Sun, 12 Apr 2020 01:35:18 +0800 Subject: [PATCH 1/3] 4_pin.md: fix typo --- src/4_pin.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/4_pin.md b/src/4_pin.md index 594079b..b7934d1 100644 --- a/src/4_pin.md +++ b/src/4_pin.md @@ -326,7 +326,7 @@ Let's see what happens if we run our example now: pub fn main() { // test1 is safe to move before we initialize it let mut test1 = Test::new("test1"); - // Notice how we shadow `test1` to prevent it from beeing accessed again + // Notice how we shadow `test1` to prevent it from being accessed again let mut test1 = unsafe { Pin::new_unchecked(&mut test1) }; Test::init(test1.as_mut()); From 37571946841a0673301b96245c67e80385d86aaf Mon Sep 17 00:00:00 2001 From: eupn <36292692+eupn@users.noreply.github.com> Date: Sun, 12 Apr 2020 01:52:17 +0800 Subject: [PATCH 2/3] 6_future_example.md: fix typo --- src/6_future_example.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/6_future_example.md b/src/6_future_example.md index 3795023..92b3ef8 100644 --- a/src/6_future_example.md +++ b/src/6_future_example.md @@ -163,7 +163,7 @@ const VTABLE: RawWakerVTable = unsafe { ) }; -// Instead of implementing this on the `MyWaker` oject in `impl Mywaker...` we +// Instead of implementing this on the `MyWaker` object in `impl Mywaker...` we // just use this pattern instead since it saves us some lines of code. fn waker_into_waker(s: *const MyWaker) -> Waker { let raw_waker = RawWaker::new(s as *const (), &VTABLE); From 1520be032cd78db23b234145b2be16841f4b26ba Mon Sep 17 00:00:00 2001 From: Ian Wagner Date: Sun, 12 Apr 2020 16:59:56 +0900 Subject: [PATCH 3/3] Fix minor typo --- src/2_waker_context.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/2_waker_context.md b/src/2_waker_context.md index 61613c6..ae2c1ab 100644 --- a/src/2_waker_context.md +++ b/src/2_waker_context.md @@ -139,7 +139,7 @@ fn main() { // length of the array is encoded in the array itself as the second value. let vtable = vec![ 0, // pointer to `Drop` (which we're not implementing here) - 6, // lenght of vtable + 6, // length of vtable 8, // alignment // we need to make sure we add these in the same order as defined in the Trait.