mirror of https://github.com/astral-sh/ruff
Update rule B005 docs (#8028)
## Summary Rule B005 of flake8-bugbear docs has a typo in one of the examples that leads to a confusion in the correctness of `.strip()` method  ```python # Wrong output (used in docs) "text.txt".strip(".txt") # "ex" # Correct output "text.txt".strip(".txt") # "e" ```
This commit is contained in:
parent
88c0106421
commit
d85950ce5a
|
|
@ -34,7 +34,7 @@ use crate::checkers::ast::Checker;
|
|||
///
|
||||
/// ## Example
|
||||
/// ```python
|
||||
/// "text.txt".strip(".txt") # "ex"
|
||||
/// "text.txt".strip(".txt") # "e"
|
||||
/// ```
|
||||
///
|
||||
/// Use instead:
|
||||
|
|
|
|||
Loading…
Reference in New Issue