Update example: Counter.subtract returns None, not self

This commit is contained in:
Andrew Svetlov 2012-12-17 14:01:16 +02:00
parent dfe109e33f
commit f635172c72

View file

@ -121,6 +121,7 @@ For example::
>>> c = Counter(a=4, b=2, c=0, d=-2)
>>> d = Counter(a=1, b=2, c=3, d=4)
>>> c.subtract(d)
>>> c
Counter({'a': 3, 'b': 0, 'c': -3, 'd': -6})
.. versionadded:: 3.2