From 41a14564ec0dc38b3fb7d24a3a8a19d940fdd5b0 Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:22:08 +0000 Subject: [PATCH] docs(transformer/class-properties): correct doc comments (#7966) Correct doc comments which were inaccurate. --- .../src/es2022/class_properties/private_field.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/oxc_transformer/src/es2022/class_properties/private_field.rs b/crates/oxc_transformer/src/es2022/class_properties/private_field.rs index 9266408765854..da4b2e23ebbf0 100644 --- a/crates/oxc_transformer/src/es2022/class_properties/private_field.rs +++ b/crates/oxc_transformer/src/es2022/class_properties/private_field.rs @@ -409,8 +409,8 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> { /// * `object.#prop &&= value` /// -> `_assertClassBrand(Class, object, _prop)._ && (_prop._ = _assertClassBrand(Class, object, value))` /// - /// Output in all cases contains an `AssignmentExpression`, so mutate existing `AssignmentExpression` - /// rather than creating a new one. + /// Output in some cases contains an `AssignmentExpression`, so mutate existing `AssignmentExpression` + /// rather than creating a new one when possible. // // `#[inline]` so that compiler sees `expr` is an `Expression::AssignmentExpression` with // `AssignmentTarget::PrivateFieldExpression` on left, and that clones in @@ -570,9 +570,6 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> { /// -> `_classPrivateFieldSet2(_prop, object, _classPrivateFieldGet2(_prop, object) + value)` /// * `object.#prop &&= value` /// -> `_classPrivateFieldGet2(_prop, object) && _classPrivateFieldSet2(_prop, object, value)` - /// - /// Output in all cases contains an `AssignmentExpression`, so mutate existing `AssignmentExpression` - /// rather than creating a new one. // // `#[inline]` so that compiler sees `expr` is an `Expression::AssignmentExpression` with // `AssignmentTarget::PrivateFieldExpression` on left, and that clones in