Skip to content

Commit af53999

Browse files
Document that derives imply supertraits, where applicable. (#2038) (#2039)
Fixes #2037 Co-authored-by: Jack Wrenn <[email protected]>
1 parent 6fb430e commit af53999

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/lib.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -923,9 +923,9 @@ safety_comment! {
923923
/// Analyzes whether a type is [`FromZeros`].
924924
///
925925
/// This derive analyzes, at compile time, whether the annotated type satisfies
926-
/// the [safety conditions] of `FromZeros` and implements `FromZeros` if it is
927-
/// sound to do so. This derive can be applied to structs, enums, and unions;
928-
/// e.g.:
926+
/// the [safety conditions] of `FromZeros` and implements `FromZeros` and its
927+
/// supertraits if it is sound to do so. This derive can be applied to structs,
928+
/// enums, and unions; e.g.:
929929
///
930930
/// ```
931931
/// # use zerocopy_derive::{FromZeros, Immutable};
@@ -3174,8 +3174,9 @@ pub unsafe trait FromZeros: TryFromBytes {
31743174
/// Analyzes whether a type is [`FromBytes`].
31753175
///
31763176
/// This derive analyzes, at compile time, whether the annotated type satisfies
3177-
/// the [safety conditions] of `FromBytes` and implements `FromBytes` if it is
3178-
/// sound to do so. This derive can be applied to structs, enums, and unions;
3177+
/// the [safety conditions] of `FromBytes` and implements `FromBytes` and its
3178+
/// supertraits if it is sound to do so. This derive can be applied to structs,
3179+
/// enums, and unions;
31793180
/// e.g.:
31803181
///
31813182
/// ```

0 commit comments

Comments
 (0)