Skip to content

Commit 00419d5

Browse files
authored
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.
2 parents 955b21b + f5e776c commit 00419d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/task/wake.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ pub struct RawWakerVTable {
104104
/// pointer.
105105
wake_by_ref: unsafe fn(*const ()),
106106

107-
/// This function gets called when a [`RawWaker`] gets dropped.
107+
/// This function gets called when a [`Waker`] gets dropped.
108108
///
109109
/// The implementation of this function must make sure to release any
110110
/// resources that are associated with this instance of a [`RawWaker`] and
@@ -151,7 +151,7 @@ impl RawWakerVTable {
151151
///
152152
/// # `drop`
153153
///
154-
/// This function gets called when a [`RawWaker`] gets dropped.
154+
/// This function gets called when a [`Waker`] gets dropped.
155155
///
156156
/// The implementation of this function must make sure to release any
157157
/// resources that are associated with this instance of a [`RawWaker`] and

0 commit comments

Comments
 (0)