Skip to content

Commit

Permalink
Minor comment fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo157 authored Jul 21, 2018
1 parent 5fdf4ba commit 66a9b3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions futures-util/src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub trait AsyncReadExt: AsyncRead {
/// let bytes = await!(reader.read(&mut output[..]))?;
///
/// // This is only guaranteed to be 4 because `&[u8]` is a synchronous
/// // reader, in a real system you could get anywhere from 1 to
/// // reader. In a real system you could get anywhere from 1 to
/// // `output.len()` bytes in a single read.
/// assert_eq!(bytes, 4);
/// assert_eq!(output, [1, 2, 3, 4, 0]);
Expand All @@ -116,7 +116,7 @@ pub trait AsyncReadExt: AsyncRead {
}

/// Creates a future which will read exactly enough bytes to fill `buf`,
/// returning an error if EOF is hit sooner.
/// returning an error if end of file (EOF) is hit sooner.
///
/// The returned future will resolve once the read operation is completed.
///
Expand Down Expand Up @@ -208,7 +208,7 @@ pub trait AsyncReadExt: AsyncRead {
/// {
/// let mut writer = Cursor::new(&mut output[..]);
/// // Note that for `Cursor` the read and write halves share a single
/// // seek position, this may or may not be true for other types that
/// // seek position. This may or may not be true for other types that
/// // implement both `AsyncRead` and `AsyncWrite`.
/// let buffer_cursor = Cursor::new(&mut buffer[..]);
/// let (mut buffer_reader, mut buffer_writer) = buffer_cursor.split();
Expand Down

0 comments on commit 66a9b3d

Please sign in to comment.