File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ///
You can’t perform that action at this time.
0 commit comments