]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix syntax error in struct doc example (GH-102160)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 23 Feb 2023 00:02:31 +0000 (16:02 -0800)
committerGitHub <noreply@github.com>
Thu, 23 Feb 2023 00:02:31 +0000 (16:02 -0800)
Missing closing ) reported on Discuss by Chukwudi Nwachukwu.
(cherry picked from commit 8f647477f0ab5362741d261701b5bcd76bd69ec1)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Doc/library/struct.rst

index 50d70731f7752334704604b03a437a082d3cc5a8..12f247462fa68fa9f346d3bd0df040360bd18f3c 100644 (file)
@@ -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