From b429c5748125f5e63fbb26c85b8e49b43e62b405 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Tue, 17 May 2011 05:17:35 +0300 Subject: [PATCH] #12093: fix typo in struct doc. Patch by Sandro Tosi. --- Doc/library/struct.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/struct.rst b/Doc/library/struct.rst index 0b8052c40d8..18f6a83b6b7 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