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


![image](https://github.com/astral-sh/ruff/assets/104530599/b4e19751-558e-4ebb-b82f-25c321ddc32b)

```python
# Wrong output (used in docs) 
"text.txt".strip(".txt")  # "ex" 

# Correct output
"text.txt".strip(".txt")  # "e"
```
This commit is contained in:
Ahmed Ashraf 2023-10-18 01:32:39 +03:00 committed by GitHub
parent 88c0106421
commit d85950ce5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ use crate::checkers::ast::Checker;
/// ///
/// ## Example /// ## Example
/// ```python /// ```python
/// "text.txt".strip(".txt") # "ex" /// "text.txt".strip(".txt") # "e"
/// ``` /// ```
/// ///
/// Use instead: /// Use instead: