Skip to content

Commit 37f23d8

Browse files
authored
Fix typo in C415 Readme Example (#362)
1 parent 6b668eb commit 37f23d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ It's unnecessary to reverse the order of an iterable when passing it into one of
159159
For example:
160160

161161
* Rewrite ``set(iterable[::-1])`` as ``set(iterable)``
162-
* Rewrite ``sorted(iterable[::-1])`` as ``sorted(iterable, reverse=True)``
162+
* Rewrite ``sorted(iterable)[::-1]`` as ``sorted(iterable, reverse=True)``
163163
* Rewrite ``reversed(iterable[::-1])`` as ``iterable``
164164

165165
C416: Unnecessary ``<list/set>`` comprehension - rewrite using ``<list/set>``\().

0 commit comments

Comments
 (0)