diff --git a/crates/oxc_ast_macros/src/lib.rs b/crates/oxc_ast_macros/src/lib.rs index 6b4220cdd8c6aa..c6726f109fbd15 100644 --- a/crates/oxc_ast_macros/src/lib.rs +++ b/crates/oxc_ast_macros/src/lib.rs @@ -17,9 +17,10 @@ fn enum_repr(enum_: &syn::ItemEnum) -> TokenStream2 { /// It is also a lightweight macro; All of its computation is cached and /// it only applies the following changes without any complex operation: /// +/// * Prepend `#[repr(C)]` to structs /// * Prepend `#[repr(C, u8)]` to fieldful enums e.g. `enum E { X: u32, Y: u8 }` /// * Prepend `#[repr(u8)]` to unit (fieldless) enums e.g. `enum E { X, Y, Z, }` -/// * Prepend `#[derive(oxc_ast_macros::Ast)]` +/// * Prepend `#[derive(oxc_ast_macros::Ast)]` to all structs and enums /// #[proc_macro_attribute] #[allow(clippy::missing_panics_doc)]