Skip to content

Commit 490477d

Browse files
authored
capitalization correction for Counter title (#206)
* Update collections.rst * parallel sorting bug fix Python 3 zip object no longer supports .sort() AttributeError: 'zip' object has no attribute 'sort' Changed to sorted to be forward compatible
1 parent d26d4b5 commit 490477d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

collections.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The ones which we will talk about are:
99

1010
- ``defaultdict``
1111
- ``OrderedDict``
12-
- ``counter``
12+
- ``Counter``
1313
- ``deque``
1414
- ``namedtuple``
1515
- ``enum.Enum`` (outside of the module; Python 3.4+)
@@ -119,7 +119,7 @@ the end of the dictionary.
119119
# Blue 160
120120
# Insertion order is preserved
121121
122-
``counter``
122+
``Counter``
123123
^^^^^^^^^^^^^^^
124124

125125
Counter allows us to count the occurrences of a particular item. For

lambdas.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ they are used in the wild:
3939
.. code:: python
4040
4141
data = zip(list1, list2)
42-
data.sort()
42+
data = sorted(data)
4343
list1, list2 = map(lambda t: list(t), zip(*data))

0 commit comments

Comments
 (0)