summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-10-06 20:38:20 (GMT)
committerGeorg Brandl <georg@python.org>2012-10-06 20:38:20 (GMT)
commit2fdc0f8a86d715fe4408fc5de98da70be480acfa (patch)
tree81e8c9db2c190b7d20103cce3906702abe8121bc /Doc/library
parenta21e51570d1f8bc00d7d4a0edb71f29c27bed3b7 (diff)
downloadcpython-2fdc0f8a86d715fe4408fc5de98da70be480acfa.zip
cpython-2fdc0f8a86d715fe4408fc5de98da70be480acfa.tar.gz
cpython-2fdc0f8a86d715fe4408fc5de98da70be480acfa.tar.bz2
Fix markup in Counter note.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/collections.rst20
1 files changed, 10 insertions, 10 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 7979f07..45da4e5 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -347,24 +347,24 @@ or subtracting from an empty counter.
this section documents the minimum range and type restrictions.
* The :class:`Counter` class itself is a dictionary subclass with no
- restrictions on its keys and values. The values are intended to be numbers
- representing counts, but you *could* store anything in the value field.
+ restrictions on its keys and values. The values are intended to be numbers
+ representing counts, but you *could* store anything in the value field.
* The :meth:`most_common` method requires only that the values be orderable.
* For in-place operations such as ``c[key] += 1``, the value type need only
- support addition and subtraction. So fractions, floats, and decimals would
- work and negative values are supported. The same is also true for
- :meth:`update` and :meth:`subtract` which allow negative and zero values
- for both inputs and outputs.
+ support addition and subtraction. So fractions, floats, and decimals would
+ work and negative values are supported. The same is also true for
+ :meth:`update` and :meth:`subtract` which allow negative and zero values
+ for both inputs and outputs.
* The multiset methods are designed only for use cases with positive values.
- The inputs may be negative or zero, but only outputs with positive values
- are created. There are no type restrictions, but the value type needs to
- support addition, subtraction, and comparison.
+ The inputs may be negative or zero, but only outputs with positive values
+ are created. There are no type restrictions, but the value type needs to
+ support addition, subtraction, and comparison.
* The :meth:`elements` method requires integer counts. It ignores zero and
- negative counts.
+ negative counts.
.. seealso::