diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-17 12:01:16 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-17 12:01:16 (GMT) |
commit | f635172c7222a6a6e1e2aa78c8ad987ec06cfded (patch) | |
tree | ef7c3f5fe7bcc9d8b8c1b73c08997dfe7cc5741e /Doc/library | |
parent | dfe109e33f95f0c2cad5465347a62ac3ec14ca06 (diff) | |
download | cpython-f635172c7222a6a6e1e2aa78c8ad987ec06cfded.zip cpython-f635172c7222a6a6e1e2aa78c8ad987ec06cfded.tar.gz cpython-f635172c7222a6a6e1e2aa78c8ad987ec06cfded.tar.bz2 |
Update example: Counter.subtract returns None, not self
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/collections.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 57e0481..f63a853 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -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 |