Skip to content

Commit

Permalink
Fix typo in C415 Readme Example (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skylion007 authored Sep 20, 2021
1 parent 6b668eb commit 37f23d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ It's unnecessary to reverse the order of an iterable when passing it into one of
For example:

* Rewrite ``set(iterable[::-1])`` as ``set(iterable)``
* Rewrite ``sorted(iterable[::-1])`` as ``sorted(iterable, reverse=True)``
* Rewrite ``sorted(iterable)[::-1]`` as ``sorted(iterable, reverse=True)``
* Rewrite ``reversed(iterable[::-1])`` as ``iterable``

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

0 comments on commit 37f23d8

Please sign in to comment.