diff --git a/crates/oxc_linter/src/rules/oxc/erasing_op.rs b/crates/oxc_linter/src/rules/oxc/erasing_op.rs index 3a2d6864fc88c..34f35929da394 100644 --- a/crates/oxc_linter/src/rules/oxc/erasing_op.rs +++ b/crates/oxc_linter/src/rules/oxc/erasing_op.rs @@ -31,12 +31,16 @@ declare_oxc_lint!( /// The whole expression can be replaced by zero. This is most likely not the intended outcome and should probably be corrected. /// /// ### Example + /// + /// Examples of **incorrect** code for this rule: /// ```javascript /// // Bad /// let x = 1; /// let y = x * 0; + /// ``` /// - /// // Good + /// Examples of **correct** code for this rule: + /// ```javascript /// let x = 1; /// let y = 0; /// ```