Skip to content

Commit

Permalink
Fix syntax error in struct doc example (#102160)
Browse files Browse the repository at this point in the history
Missing closing ) reported on Discuss by Chukwudi Nwachukwu.
  • Loading branch information
terryjreedy authored Feb 22, 2023
1 parent fcadc7e commit 8f64747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/struct.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f64747

Please sign in to comment.