]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix syntax error in struct doc example (#102160)
authorTerry Jan Reedy <tjreedy@udel.edu>
Wed, 22 Feb 2023 23:55:03 +0000 (18:55 -0500)
committerGitHub <noreply@github.com>
Wed, 22 Feb 2023 23:55:03 +0000 (18:55 -0500)
Missing closing ) reported on Discuss by Chukwudi Nwachukwu.

Doc/library/struct.rst

index 69d95f27cb61d995426f4d062a5118341f743dcd..9c0e32ba16bf68a5a119308091049828b9cf8e57 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