Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2fdc0f8

Browse files
committed
Fix markup in Counter note.
1 parent a21e515 commit 2fdc0f8

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

Doc/library/collections.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -347,24 +347,24 @@ or subtracting from an empty counter.
347347
this section documents the minimum range and type restrictions.
348348

349349
* The :class:`Counter` class itself is a dictionary subclass with no
350-
restrictions on its keys and values. The values are intended to be numbers
351-
representing counts, but you *could* store anything in the value field.
350+
restrictions on its keys and values. The values are intended to be numbers
351+
representing counts, but you *could* store anything in the value field.
352352

353353
* The :meth:`most_common` method requires only that the values be orderable.
354354

355355
* For in-place operations such as ``c[key] += 1``, the value type need only
356-
support addition and subtraction. So fractions, floats, and decimals would
357-
work and negative values are supported. The same is also true for
358-
:meth:`update` and :meth:`subtract` which allow negative and zero values
359-
for both inputs and outputs.
356+
support addition and subtraction. So fractions, floats, and decimals would
357+
work and negative values are supported. The same is also true for
358+
:meth:`update` and :meth:`subtract` which allow negative and zero values
359+
for both inputs and outputs.
360360

361361
* The multiset methods are designed only for use cases with positive values.
362-
The inputs may be negative or zero, but only outputs with positive values
363-
are created. There are no type restrictions, but the value type needs to
364-
support addition, subtraction, and comparison.
362+
The inputs may be negative or zero, but only outputs with positive values
363+
are created. There are no type restrictions, but the value type needs to
364+
support addition, subtraction, and comparison.
365365

366366
* The :meth:`elements` method requires integer counts. It ignores zero and
367-
negative counts.
367+
negative counts.
368368

369369
.. seealso::
370370

0 commit comments

Comments
 (0)