]> granicus.if.org Git - python/commitdiff
#12093: fix typo in struct doc. Patch by Sandro Tosi.
authorEzio Melotti <ezio.melotti@gmail.com>
Tue, 17 May 2011 02:17:35 +0000 (05:17 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Tue, 17 May 2011 02:17:35 +0000 (05:17 +0300)
Doc/library/struct.rst

index 0b8052c40d8f3bbb76457d9268d49b766c6cd6e1..18f6a83b6b703c05ac2483330bd27cf4334d287e 100644 (file)
@@ -314,7 +314,7 @@ the result in a named tuple::
 
     >>> from collections import namedtuple
     >>> Student = namedtuple('Student', 'name serialnum school gradelevel')
-    >>> Student._make(unpack('<10sHHb', s))
+    >>> Student._make(unpack('<10sHHb', record))
     Student(name='raymond   ', serialnum=4658, school=264, gradelevel=8)
 
 The ordering of format characters may have an impact on size since the padding