summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-02-23 00:02:38 (GMT)
committerGitHub <noreply@github.com>2023-02-23 00:02:38 (GMT)
commit780dec8a9468a5f31c9f7ebfc4f673ed4ed9e0e8 (patch)
tree541b0152b30b6cb70a9d9caf02671ae7271f2c1a
parentfa592f0e017b251812ab9b459dbe9c417415b458 (diff)
downloadcpython-780dec8a9468a5f31c9f7ebfc4f673ed4ed9e0e8.zip
cpython-780dec8a9468a5f31c9f7ebfc4f673ed4ed9e0e8.tar.gz
cpython-780dec8a9468a5f31c9f7ebfc4f673ed4ed9e0e8.tar.bz2
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 <tjreedy@udel.edu>
-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 50d7073..12f2474 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