@@ -96,10 +96,10 @@ mod if_std {
9696
9797 /// Attempt to read from the `AsyncRead` into `buf`.
9898 ///
99- /// On success, returns `Ok( Poll::Ready(num_bytes_read))`.
99+ /// On success, returns `Poll::Ready(Ok (num_bytes_read))`.
100100 ///
101101 /// If no data is available for reading, the method returns
102- /// `Ok( Poll::Pending) ` and arranges for the current task (via
102+ /// `Poll::Pending` and arranges for the current task (via
103103 /// `cx.waker().wake_by_ref()`) to receive a notification when the object becomes
104104 /// readable or is closed.
105105 ///
@@ -118,10 +118,10 @@ mod if_std {
118118 /// This method is similar to `poll_read`, but allows data to be read
119119 /// into multiple buffers using a single operation.
120120 ///
121- /// On success, returns `Ok( Poll::Ready(num_bytes_read))`.
121+ /// On success, returns `Poll::Ready(Ok (num_bytes_read))`.
122122 ///
123123 /// If no data is available for reading, the method returns
124- /// `Ok( Poll::Pending) ` and arranges for the current task (via
124+ /// `Poll::Pending` and arranges for the current task (via
125125 /// `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
@@ -156,10 +156,10 @@ mod if_std {
156156 pub trait AsyncWrite {
157157 /// Attempt to write bytes from `buf` into the object.
158158 ///
159- /// On success, returns `Ok( Poll::Ready(num_bytes_written))`.
159+ /// On success, returns `Poll::Ready(Ok (num_bytes_written))`.
160160 ///
161161 /// If the object is not ready for writing, the method returns
162- /// `Ok( Poll::Pending) ` and arranges for the current task (via
162+ /// `Poll::Pending` and arranges for the current task (via
163163 /// `cx.waker().wake_by_ref()`) to receive a notification when the object becomes
164164 /// readable or is closed.
165165 ///
@@ -178,10 +178,10 @@ mod if_std {
178178 /// This method is similar to `poll_write`, but allows data from multiple buffers to be written
179179 /// using a single operation.
180180 ///
181- /// On success, returns `Ok( Poll::Ready(num_bytes_written))`.
181+ /// On success, returns `Poll::Ready(Ok (num_bytes_written))`.
182182 ///
183183 /// If the object is not ready for writing, the method returns
184- /// `Ok( Poll::Pending) ` and arranges for the current task (via
184+ /// `Poll::Pending` and arranges for the current task (via
185185 /// `cx.waker().wake_by_ref()`) to receive a notification when the object becomes
186186 /// readable or is closed.
187187 ///
@@ -209,10 +209,10 @@ mod if_std {
209209 /// Attempt to flush the object, ensuring that any buffered data reach
210210 /// their destination.
211211 ///
212- /// On success, returns `Ok( Poll::Ready(()))`.
212+ /// On success, returns `Poll::Ready(Ok (()))`.
213213 ///
214214 /// If flushing cannot immediately complete, this method returns
215- /// `Ok( Poll::Pending) ` and arranges for the current task (via
215+ /// `Poll::Pending` and arranges for the current task (via
216216 /// `cx.waker().wake_by_ref()`) to receive a notification when the object can make
217217 /// progress towards flushing.
218218 ///
@@ -226,10 +226,10 @@ mod if_std {
226226
227227 /// Attempt to close the object.
228228 ///
229- /// On success, returns `Ok( Poll::Ready(()))`.
229+ /// On success, returns `Poll::Ready(Ok (()))`.
230230 ///
231231 /// If closing cannot immediately complete, this function returns
232- /// `Ok( Poll::Pending) ` and arranges for the current task (via
232+ /// `Poll::Pending` and arranges for the current task (via
233233 /// `cx.waker().wake_by_ref()`) to receive a notification when the object can make
234234 /// progress towards closing.
235235 ///
0 commit comments