Merge pull request #9 from eupn/patch-2

6_future_example.md: fix typo
This commit is contained in:
Carl Fredrik Samson
2020-04-12 01:02:27 +02:00
committed by GitHub

View File

@@ -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. // just use this pattern instead since it saves us some lines of code.
fn waker_into_waker(s: *const MyWaker) -> Waker { fn waker_into_waker(s: *const MyWaker) -> Waker {
let raw_waker = RawWaker::new(s as *const (), &VTABLE); let raw_waker = RawWaker::new(s as *const (), &VTABLE);