Skip to content

Commit af9179e

Browse files
authored
Document that derives imply supertraits, where applicable. (#2038)
Fixes #2037
1 parent 9733196 commit af9179e

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
@@ -944,9 +944,9 @@ safety_comment! {
944944
/// Analyzes whether a type is [`FromZeros`].
945945
///
946946
/// This derive analyzes, at compile time, whether the annotated type satisfies
947-
/// the [safety conditions] of `FromZeros` and implements `FromZeros` if it is
948-
/// sound to do so. This derive can be applied to structs, enums, and unions;
949-
/// e.g.:
947+
/// the [safety conditions] of `FromZeros` and implements `FromZeros` and its
948+
/// supertraits if it is sound to do so. This derive can be applied to structs,
949+
/// enums, and unions; e.g.:
950950
///
951951
/// ```
952952
/// # use zerocopy_derive::{FromZeros, Immutable};
@@ -3204,8 +3204,9 @@ pub unsafe trait FromZeros: TryFromBytes {
32043204
/// Analyzes whether a type is [`FromBytes`].
32053205
///
32063206
/// This derive analyzes, at compile time, whether the annotated type satisfies
3207-
/// the [safety conditions] of `FromBytes` and implements `FromBytes` if it is
3208-
/// sound to do so. This derive can be applied to structs, enums, and unions;
3207+
/// the [safety conditions] of `FromBytes` and implements `FromBytes` and its
3208+
/// supertraits if it is sound to do so. This derive can be applied to structs,
3209+
/// enums, and unions;
32093210
/// e.g.:
32103211
///
32113212
/// ```

0 commit comments

Comments
 (0)