Skip to content

Commit 3f0d889

Browse files
committed
fix(linter): add missing article to oxc/bad-array-method-on-arguments diagnostic (#11518)
1 parent cf0c24c commit 3f0d889

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

crates/oxc_linter/src/rules/oxc/bad_array_method_on_arguments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::{AstNode, context::LintContext, rule::Rule};
1111
fn bad_array_method_on_arguments_diagnostic(method_name: &str, span: Span) -> OxcDiagnostic {
1212
OxcDiagnostic::warn("Bad array method on arguments")
1313
.with_help(format!(
14-
"The 'arguments' object does not have '{method_name}()' method. If an array method was intended, consider converting the 'arguments' object to an array or using ES6 rest parameter instead."
14+
"The 'arguments' object does not have a '{method_name}()' method. If you intended to use an array method, consider converting the 'arguments' object to an array or using an ES6 rest parameter instead."
1515
))
1616
.with_label(span)
1717
}

0 commit comments

Comments
 (0)