Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Liebow-Feeser <[email protected]>
  • Loading branch information
jswrenn and joshlf authored Nov 6, 2024
1 parent 7230aae commit 07a4971
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4528,7 +4528,7 @@ pub unsafe trait FromBytes: FromZeros {
}
}

/// Reads a copy of `self` from the IO byte source `src`.
/// Reads a copy of `self` from an `io::Read`.
///
/// This is useful for interfacing with operating system byte sinks (files,
/// sockets, etc.).
Expand Down Expand Up @@ -5233,7 +5233,7 @@ pub unsafe trait IntoBytes {
Ok(())
}

/// Writes a copy of `self` to the IO byte sink `dst`.
/// Writes a copy of `self` to an `io::Write`.
///
/// This is a shorthand for `dst.write_all(self.as_bytes())`, and is useful
/// for interfacing with operating system byte sinks (files, sockets, etc.).
Expand Down Expand Up @@ -5265,7 +5265,7 @@ pub unsafe trait IntoBytes {
/// # use zerocopy::IntoBytes;
///
/// let src = u128::MAX;
/// let mut dst = [0u8, 0];
/// let mut dst = [0u8; 2];
///
/// let write_result = src.write_to_io(&mut dst[..]);
///
Expand Down

0 comments on commit 07a4971

Please sign in to comment.