From f9981147814159b916e3413a41a3fd7888f7bb52 Mon Sep 17 00:00:00 2001 From: Batuhan Dagistanli <134649854+BatuhanDagistanli@users.noreply.github.com> Date: Sun, 15 Sep 2024 14:12:58 +0300 Subject: [PATCH] Update document about field-less enums in lib.rs (#1654) Closes #985 --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index bdacaa4079..1521d7ca02 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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