Skip to content

Commit e1d76b6

Browse files
authored
Add missing backtick to B034 documentation (#5889)
This is a great rule, but the documentation page shows some wonky formatting due to a missing backtick. Fix a typo too. Should fix display on https://beta.ruff.rs/docs/rules/re-sub-positional-args/ <img width="1160" alt="image" src="https://github.com/astral-sh/ruff/assets/901169/44bd76ec-9eb9-4290-ba7a-7691a7ea21d4">
1 parent 6f96acf commit e1d76b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ruff/src/rules/flake8_bugbear/rules/re_sub_positional_args.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ use crate::checkers::ast::Checker;
1313
///
1414
/// ## Why is this bad?
1515
/// Passing `count`, `maxsplit`, or `flags` as positional arguments to
16-
/// `re.sub`, re.subn`, or `re.split` can lead to confusion, as most methods in
17-
/// the `re` module accepts `flags` as the third positional argument, while
16+
/// `re.sub`, `re.subn`, or `re.split` can lead to confusion, as most methods in
17+
/// the `re` module accept `flags` as the third positional argument, while
1818
/// `re.sub`, `re.subn`, and `re.split` have different signatures.
1919
///
2020
/// Instead, pass `count`, `maxsplit`, and `flags` as keyword arguments.

0 commit comments

Comments
 (0)