Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dosisod committed Jan 24, 2024
1 parent 9e5e99a commit a9a4edd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/checks.md
Original file line number Diff line number Diff line change
Expand Up @@ -2330,9 +2330,9 @@ Bad:
```python
names = ["Bob", "Alice", "Charlie"]

names = reverse(names)
names = reversed(names)
# or
names = list(reverse(names))
names = list(reversed(names))
# or
names = names[::-1]
```
Expand Down
4 changes: 2 additions & 2 deletions refurb/checks/readability/use_reverse.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class ErrorInfo(Error):
```
names = ["Bob", "Alice", "Charlie"]
names = reverse(names)
names = reversed(names)
# or
names = list(reverse(names))
names = list(reversed(names))
# or
names = names[::-1]
```
Expand Down

0 comments on commit a9a4edd

Please sign in to comment.