[Python-checkins] cpython (2.7): #19934: fix mangled wording
andrew.kuchling
python-checkins at python.org
Wed May 13 17:25:48 CEST 2015
https://hg.python.org/cpython/rev/68d653f9a2c9
changeset: 96026:68d653f9a2c9
branch: 2.7
parent: 96022:f6e297e698ff
user: Andrew Kuchling <amk at amk.ca>
date: Wed May 13 11:25:40 2015 -0400
summary:
#19934: fix mangled wording
files:
Doc/library/collections.rst | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -104,9 +104,9 @@
.. method:: most_common([n])
Return a list of the *n* most common elements and their counts from the
- most common to the least. If *n* is omitted or ``None`
- :func:`most_common` returns *all* elements in the count
- with equal counts are ordered arbitrarily:
+ most common to the least. If *n* is omitted or ``None``,
+ :func:`most_common` returns *all* elements in the counter.
+ Elements with equal counts are ordered arbitrarily:
>>> Counter('abracadabra').most_common(3)
[('a', 5), ('r', 2), ('b', 2)]
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list