]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #24064: Add __doc__ to the example in collections.rst.
authorBerker Peksag <berker.peksag@gmail.com>
Wed, 13 May 2015 09:16:27 +0000 (12:16 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Wed, 13 May 2015 09:16:27 +0000 (12:16 +0300)
Doc/library/collections.rst

index 892f05ddf36c9f9811950dce9f25a9c37a57f27a..e27774cb9407c289eec8fc6df2f486e1342eee2d 100644 (file)
@@ -929,9 +929,9 @@ fields:
 
    >>> Book = namedtuple('Book', ['id', 'title', 'authors'])
    >>> Book.__doc__ = 'Hardcover book in active collection'
-   >>> Book.id = '13-digit ISBN'
-   >>> Book.title = 'Title of first printing'
-   >>> Book.author = 'List of authors sorted by last name'
+   >>> Book.id.__doc__ = '13-digit ISBN'
+   >>> Book.title.__doc__ = 'Title of first printing'
+   >>> Book.author.__doc__ = 'List of authors sorted by last name'
 
 Default values can be implemented by using :meth:`_replace` to
 customize a prototype instance: