Skip to content

Commit 77cc640

Browse files
committed
docs: fix string-replace-all incorrect example
1 parent 06781ab commit 77cc640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/oxc_linter/src/rules/unicorn/prefer_string_replace_all.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ declare_oxc_lint!(
3535
///
3636
/// Examples of **incorrect** code for this rule:
3737
/// ```js
38-
/// array.reduceRight(reducer, initialValue);
38+
/// foo.replace(/a/g, bar)
3939
/// ```
4040
///
4141
/// Examples of **correct** code for this rule:

0 commit comments

Comments
 (0)