mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 10:22:24 +00:00
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="44bd76ec
-9eb9-4290-ba7a-7691a7ea21d4">
This commit is contained in:
parent
6f96acfd27
commit
e1d76b60cc
1 changed files with 2 additions and 2 deletions
|
@ -13,8 +13,8 @@ use crate::checkers::ast::Checker;
|
|||
///
|
||||
/// ## Why is this bad?
|
||||
/// Passing `count`, `maxsplit`, or `flags` as positional arguments to
|
||||
/// `re.sub`, re.subn`, or `re.split` can lead to confusion, as most methods in
|
||||
/// the `re` module accepts `flags` as the third positional argument, while
|
||||
/// `re.sub`, `re.subn`, or `re.split` can lead to confusion, as most methods in
|
||||
/// the `re` module accept `flags` as the third positional argument, while
|
||||
/// `re.sub`, `re.subn`, and `re.split` have different signatures.
|
||||
///
|
||||
/// Instead, pass `count`, `maxsplit`, and `flags` as keyword arguments.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue