From: Andrew Svetlov Date: Mon, 17 Dec 2012 12:01:16 +0000 (+0200) Subject: Update example: Counter.subtract returns None, not self X-Git-Tag: v3.2.4rc1~260 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f635172c7222a6a6e1e2aa78c8ad987ec06cfded;p=thirdparty%2FPython%2Fcpython.git Update example: Counter.subtract returns None, not self --- diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 57e04810f758..f63a853c870c 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