From: Ezio Melotti Date: Tue, 17 May 2011 02:17:35 +0000 (+0300) Subject: #12093: fix typo in struct doc. Patch by Sandro Tosi. X-Git-Tag: v2.7.2rc1~32^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b429c5748125f5e63fbb26c85b8e49b43e62b405;p=python #12093: fix typo in struct doc. Patch by Sandro Tosi. --- diff --git a/Doc/library/struct.rst b/Doc/library/struct.rst index 0b8052c40d..18f6a83b6b 100644 --- a/Doc/library/struct.rst +++ b/Doc/library/struct.rst @@ -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