summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-05-17 05:17:35 +0300
committerEzio Melotti <ezio.melotti@gmail.com>2011-05-17 05:17:35 +0300
commitb429c5748125f5e63fbb26c85b8e49b43e62b405 (patch)
tree8159730ad6bb93217328e43d4cd6eae7b10cacda
parent4dd89ce6bfb635176d8c9185c148ca11ed207728 (diff)
downloadcpython-git-b429c5748125f5e63fbb26c85b8e49b43e62b405.tar.gz
#12093: fix typo in struct doc. Patch by Sandro Tosi.
-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 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