diff options
Diffstat (limited to 'tokio/src/io/util/async_read_ext.rs')
-rw-r--r-- | tokio/src/io/util/async_read_ext.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tokio/src/io/util/async_read_ext.rs b/tokio/src/io/util/async_read_ext.rs index 4ffb769c..d4402db6 100644 --- a/tokio/src/io/util/async_read_ext.rs +++ b/tokio/src/io/util/async_read_ext.rs @@ -12,7 +12,7 @@ use crate::io::AsyncRead; use bytes::BufMut; cfg_io_util! { - /// Define numeric reader + /// Defines numeric reader macro_rules! read_impl { ( $( @@ -29,7 +29,7 @@ cfg_io_util! { } } - /// Read bytes from a source. + /// Reads bytes from a source. /// /// Implemented as an extention trait, adding utility methods to all /// [`AsyncRead`] types. Callers will tend to import this trait instead of @@ -58,7 +58,7 @@ cfg_io_util! { /// [`AsyncRead`]: AsyncRead /// [`prelude`]: crate::prelude pub trait AsyncReadExt: AsyncRead { - /// Create a new `AsyncRead` instance that chains this stream with + /// Creates a new `AsyncRead` instance that chains this stream with /// `next`. /// /// The returned `AsyncRead` instance will first read all bytes from this object @@ -95,7 +95,7 @@ cfg_io_util! { chain(self, next) } - /// Pull some bytes from this source into the specified buffer, + /// Pulls some bytes from this source into the specified buffer, /// returning how many bytes were read. /// /// Equivalent to: @@ -120,7 +120,7 @@ cfg_io_util! { /// /// No guarantees are provided about the contents of `buf` when this /// function is called, implementations cannot rely on any property of the - /// contents of `buf` being true. It is recommended that *implementations* + /// contents of `buf` being `true`. It is recommended that *implementations* /// only write data to `buf` instead of reading its contents. /// /// Correspondingly, however, *callers* of this method may not assume @@ -162,7 +162,7 @@ cfg_io_util! { read(self, buf) } - /// Pull some bytes from this source into the specified buffer, + /// Pulls some bytes from this source into the specified buffer, /// advancing the buffer's internal cursor. /// /// Equivalent to: @@ -227,7 +227,7 @@ cfg_io_util! { read_buf(self, buf) } - /// Read the exact number of bytes required to fill `buf`. + /// Reads the exact number of bytes required to fill `buf`. /// /// Equivalent to: /// @@ -240,7 +240,7 @@ cfg_io_util! { /// /// No guarantees are provided about the contents of `buf` when this /// function is called, implementations cannot rely on any property of - /// the contents of `buf` being true. It is recommended that + /// the contents of `buf` being `true`. It is recommended that /// implementations only write data to `buf` instead of reading its /// contents. /// @@ -671,7 +671,7 @@ cfg_io_util! { fn read_i128(&mut self) -> ReadI128; } - /// Read all bytes until EOF in this source, placing them into `buf`. + /// Reads all bytes until EOF in this source, placing them into `buf`. /// /// Equivalent to: /// @@ -721,7 +721,7 @@ cfg_io_util! { read_to_end(self, buf) } - /// Read all bytes until EOF in this source, appending them to `buf`. + /// Reads all bytes until EOF in this source, appending them to `buf`. /// /// Equivalent to: /// |