diff options
| author | Yuki Okushi <huyuumi.dev+love@gmail.com> | 2022-12-22 08:32:11 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-22 08:32:11 +0900 |
| commit | 03a763c5c814a86d45e4996ef16e81e3941b0e88 (patch) | |
| tree | cec83ad1b8b4e423810f5528cbc6baf91a64d084 | |
| parent | 257edf2de50c9a0d18c86146fb20aa39ff2ff89b (diff) | |
| parent | f5e776c3f7afc2020d9828b593bac9db27290376 (diff) | |
| download | rust-03a763c5c814a86d45e4996ef16e81e3941b0e88.tar.gz rust-03a763c5c814a86d45e4996ef16e81e3941b0e88.zip | |
Rollup merge of #105980 - goffrie:waker-drop, r=thomcc
Refer to "Waker" rather than "RawWaker" in `drop` comment In my view this is technically more correct as `Waker` actually implements `Drop` (which calls the `drop` method) whereas `RawWaker` does not.
| -rw-r--r-- | library/core/src/task/wake.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/task/wake.rs b/library/core/src/task/wake.rs index 0cff972df3a..1b7578376b4 100644 --- a/library/core/src/task/wake.rs +++ b/library/core/src/task/wake.rs @@ -104,7 +104,7 @@ pub struct RawWakerVTable { /// pointer. wake_by_ref: unsafe fn(*const ()), - /// This function gets called when a [`RawWaker`] gets dropped. + /// This function gets called when a [`Waker`] gets dropped. /// /// The implementation of this function must make sure to release any /// resources that are associated with this instance of a [`RawWaker`] and @@ -151,7 +151,7 @@ impl RawWakerVTable { /// /// # `drop` /// - /// This function gets called when a [`RawWaker`] gets dropped. + /// This function gets called when a [`Waker`] gets dropped. /// /// The implementation of this function must make sure to release any /// resources that are associated with this instance of a [`RawWaker`] and |
