diff --git a/crates/oxc_ast/src/ast/js.rs b/crates/oxc_ast/src/ast/js.rs index 3dc3a4248cf8c..789539eb6cfa3 100644 --- a/crates/oxc_ast/src/ast/js.rs +++ b/crates/oxc_ast/src/ast/js.rs @@ -890,9 +890,9 @@ pub struct ObjectAssignmentTarget<'a> { pub rest: Option>, } -/// `rest` in `[foo, ...rest] = arr;` +/// `rest` in `[foo, ...rest] = arr;` or `({foo, ...rest} = obj);`. /// -/// Represents a rest element in an array assignment target, which can include a target. +/// Represents rest element in an `ArrayAssignmentTarget` or `ObjectAssignmentTarget`. #[ast(visit)] #[derive(Debug)] #[generate_derive(CloneIn, Dummy, TakeIn, GetSpan, GetSpanMut, ContentEq, ESTree)]