commit | 7c42398f3bcc1f9ad1a7ac9e2149754a9e6f334a | [log] [tgz] |
---|---|---|
author | Andrew Svetlov <andrew.svetlov@gmail.com> | Mon Dec 17 14:01:29 2012 +0200 |
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | Mon Dec 17 14:01:29 2012 +0200 |
tree | 70c74af7d99d4b6eaed38c25ca8bd86f6c69244b | |
parent | 2be0edb2c4c9dfce35fcef4f985b2c92c0fd8b2e [diff] | |
parent | f635172c7222a6a6e1e2aa78c8ad987ec06cfded [diff] |
Update example: Counter.subtract returns None, not self
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 45da4e5..6ef114e 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst
@@ -279,6 +279,7 @@ >>> 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