From: Terry Jan Reedy Date: Wed, 22 Feb 2023 23:55:03 +0000 (-0500) Subject: Fix syntax error in struct doc example (#102160) X-Git-Tag: v3.12.0a6~98 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f647477f0ab5362741d261701b5bcd76bd69ec1;p=thirdparty%2FPython%2Fcpython.git Fix syntax error in struct doc example (#102160) Missing closing ) reported on Discuss by Chukwudi Nwachukwu. --- diff --git a/Doc/library/struct.rst b/Doc/library/struct.rst index 69d95f27cb61..9c0e32ba16bf 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