Skip to content

Commit

Permalink
Update document about field-less enums in lib.rs (#1654)
Browse files Browse the repository at this point in the history
Closes #985
  • Loading branch information
BatuhanDagistanli authored Sep 15, 2024
1 parent 39a3871 commit f998114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4284,7 +4284,7 @@ pub unsafe trait IntoBytes {
/// `repr(packed)` or `repr(packed(1))`.
/// - If the type is an enum:
/// - If `repr(align(N))` is provided, `N` must equal 1.
/// - It must be a C-like enum (meaning that all variants have no fields).
/// - It must be a field-less enum (meaning that all variants have no fields).
/// - It must be `repr(i8)` or `repr(u8)`.
///
/// [safety conditions]: trait@Unaligned#safety
Expand Down

0 comments on commit f998114

Please sign in to comment.