Skip to content

Commit e17b785

Browse files
committed
fix: update diagnostic
1 parent 635a687 commit e17b785

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/biome_js_analyze/src/lint/nursery/no_substr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ declare_rule! {
2626
/// ### Invalid
2727
///
2828
/// ```js,expect_diagnostic
29-
/// foo.substr(start, length);
29+
/// foo.substr();
3030
/// ```
3131
///
3232
/// ```js,expect_diagnostic
33-
/// foo.substring(indexStart, indexEnd);
33+
/// foo.substring();
3434
/// ```
3535
///
3636
/// ### Valid

0 commit comments

Comments
 (0)