summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2023-02-22 23:55:03 (GMT)
committerGitHub <noreply@github.com>2023-02-22 23:55:03 (GMT)
commit8f647477f0ab5362741d261701b5bcd76bd69ec1 (patch)
tree58ad99b1ec717ea08cb600b7abbac4990d09044a
parentfcadc7e405141847ab10daf5cff16be880083a24 (diff)
downloadcpython-8f647477f0ab5362741d261701b5bcd76bd69ec1.zip
cpython-8f647477f0ab5362741d261701b5bcd76bd69ec1.tar.gz
cpython-8f647477f0ab5362741d261701b5bcd76bd69ec1.tar.bz2
Fix syntax error in struct doc example (#102160)
Missing closing ) reported on Discuss by Chukwudi Nwachukwu.
-rw-r--r--Doc/library/struct.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/struct.rst b/Doc/library/struct.rst
index 69d95f2..9c0e32b 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