From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 23 Feb 2023 00:02:31 +0000 (-0800) Subject: Fix syntax error in struct doc example (GH-102160) X-Git-Tag: v3.11.3~120 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf0a8362cdc2670373b4462943e6e6bf156d0a5c;p=thirdparty%2FPython%2Fcpython.git Fix syntax error in struct doc example (GH-102160) Missing closing ) reported on Discuss by Chukwudi Nwachukwu. (cherry picked from commit 8f647477f0ab5362741d261701b5bcd76bd69ec1) Co-authored-by: Terry Jan Reedy --- diff --git a/Doc/library/struct.rst b/Doc/library/struct.rst index 50d70731f775..12f247462fa6 100644 --- a/Doc/library/struct.rst +++ b/Doc/library/struct.rst @@ -371,7 +371,7 @@ ordering:: >>> from struct import * >>> pack(">bhl", 1, 2, 3) b'\x01\x00\x02\x00\x00\x00\x03' - >>> unpack('>bhl', b'\x01\x00\x02\x00\x00\x00\x03' + >>> unpack('>bhl', b'\x01\x00\x02\x00\x00\x00\x03') (1, 2, 3) >>> calcsize('>bhl') 7