Skip to content

Commit bfa0caf

Browse files
jswrennjoshlf
andauthored
Apply suggestions from code review
Co-authored-by: Joshua Liebow-Feeser <joshlf@users.noreply.github.com>
1 parent 0d28ecb commit bfa0caf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2255,7 +2255,7 @@ pub unsafe trait FromBytes: FromZeros {
22552255
/// Interprets the suffix of the given `bytes` as a `&Self` without copying.
22562256
///
22572257
/// This method returns both a reference to the last `size_of::<Self>()`
2258-
/// bytes of `bytes` interpreted as `Self`, and a reference to the remaining
2258+
/// bytes of `bytes` interpreted as `Self`, and a reference to the preceding
22592259
/// bytes. If `bytes.len() < size_of::<Self>()` or the suffix of `bytes` is
22602260
/// not aligned to `align_of::<Self>()`, this returns `None`.
22612261
///
@@ -2385,7 +2385,7 @@ pub unsafe trait FromBytes: FromZeros {
23852385
/// copying.
23862386
///
23872387
/// This method returns both a reference to the last `size_of::<Self>()`
2388-
/// bytes of `bytes` interpreted as `Self`, and a reference to the remaining
2388+
/// bytes of `bytes` interpreted as `Self`, and a reference to the preceding
23892389
/// bytes. If `bytes.len() < size_of::<Self>()` or the suffix of `bytes` is
23902390
/// not aligned to `align_of::<Self>()`, this returns `None`.
23912391
///

0 commit comments

Comments
 (0)