6_future_example.md: fix typo

This commit is contained in:
eupn
2020-04-12 01:52:17 +08:00
committed by GitHub
parent f4b2029788
commit 3757194684

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.
fn waker_into_waker(s: *const MyWaker) -> Waker {
let raw_waker = RawWaker::new(s as *const (), &VTABLE);