summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-05-17 02:17:35 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-05-17 02:17:35 (GMT)
commitb429c5748125f5e63fbb26c85b8e49b43e62b405 (patch)
tree8159730ad6bb93217328e43d4cd6eae7b10cacda /Doc
parent4dd89ce6bfb635176d8c9185c148ca11ed207728 (diff)
downloadcpython-b429c5748125f5e63fbb26c85b8e49b43e62b405.zip
cpython-b429c5748125f5e63fbb26c85b8e49b43e62b405.tar.gz
cpython-b429c5748125f5e63fbb26c85b8e49b43e62b405.tar.bz2
#12093: fix typo in struct doc. Patch by Sandro Tosi.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/struct.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/struct.rst b/Doc/library/struct.rst
index 0b8052c..18f6a83 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