docs(ffi): fix copy-paste error on hyper_waker_wake (#2604)

This commit is contained in:
David Cook
2021-07-26 13:18:50 -05:00
committed by GitHub
parent 19f38b3e7f
commit 6393a0cc03
2 changed files with 6 additions and 2 deletions

View File

@@ -418,7 +418,9 @@ ffi_fn! {
}
ffi_fn! {
/// Free a waker that hasn't been woken.
/// Wake up the task associated with a waker.
///
/// NOTE: This consumes the waker. You should not use or free the waker afterwards.
fn hyper_waker_wake(waker: *mut hyper_waker) {
let waker = unsafe { Box::from_raw(waker) };
waker.waker.wake();