diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2023-02-22 23:55:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-22 23:55:03 (GMT) |
commit | 8f647477f0ab5362741d261701b5bcd76bd69ec1 (patch) | |
tree | 58ad99b1ec717ea08cb600b7abbac4990d09044a /Doc/library/struct.rst | |
parent | fcadc7e405141847ab10daf5cff16be880083a24 (diff) | |
download | cpython-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.
Diffstat (limited to 'Doc/library/struct.rst')
-rw-r--r-- | Doc/library/struct.rst | 2 |
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 |