@@ -100,7 +100,7 @@ mod if_std {
100100 ///
101101 /// If no data is available for reading, the method returns
102102 /// `Ok(Poll::Pending)` and arranges for the current task (via
103- /// `cx.waker().wake ()`) to receive a notification when the object becomes
103+ /// `cx.waker().wake_by_ref ()`) to receive a notification when the object becomes
104104 /// readable or is closed.
105105 ///
106106 /// # Implementation
@@ -122,7 +122,7 @@ mod if_std {
122122 ///
123123 /// If no data is available for reading, the method returns
124124 /// `Ok(Poll::Pending)` and arranges for the current task (via
125- /// `cx.waker().wake ()`) to receive a notification when the object becomes
125+ /// `cx.waker().wake_by_ref ()`) to receive a notification when the object becomes
126126 /// readable or is closed.
127127 /// By default, this method delegates to using `poll_read` on the first
128128 /// buffer in `vec`. Objects which support vectored IO should override
@@ -160,7 +160,7 @@ mod if_std {
160160 ///
161161 /// If the object is not ready for writing, the method returns
162162 /// `Ok(Poll::Pending)` and arranges for the current task (via
163- /// `cx.waker().wake ()`) to receive a notification when the object becomes
163+ /// `cx.waker().wake_by_ref ()`) to receive a notification when the object becomes
164164 /// readable or is closed.
165165 ///
166166 /// # Implementation
@@ -182,7 +182,7 @@ mod if_std {
182182 ///
183183 /// If the object is not ready for writing, the method returns
184184 /// `Ok(Poll::Pending)` and arranges for the current task (via
185- /// `cx.waker().wake ()`) to receive a notification when the object becomes
185+ /// `cx.waker().wake_by_ref ()`) to receive a notification when the object becomes
186186 /// readable or is closed.
187187 ///
188188 /// By default, this method delegates to using `poll_write` on the first
@@ -213,7 +213,7 @@ mod if_std {
213213 ///
214214 /// If flushing cannot immediately complete, this method returns
215215 /// `Ok(Poll::Pending)` and arranges for the current task (via
216- /// `cx.waker().wake ()`) to receive a notification when the object can make
216+ /// `cx.waker().wake_by_ref ()`) to receive a notification when the object can make
217217 /// progress towards flushing.
218218 ///
219219 /// # Implementation
@@ -230,7 +230,7 @@ mod if_std {
230230 ///
231231 /// If closing cannot immediately complete, this function returns
232232 /// `Ok(Poll::Pending)` and arranges for the current task (via
233- /// `cx.waker().wake ()`) to receive a notification when the object can make
233+ /// `cx.waker().wake_by_ref ()`) to receive a notification when the object can make
234234 /// progress towards closing.
235235 ///
236236 /// # Implementation
0 commit comments