mirror of https://github.com/python/cpython
Fix syntax error in struct doc example (#102160)
Missing closing ) reported on Discuss by Chukwudi Nwachukwu.
This commit is contained in:
parent
fcadc7e405
commit
8f647477f0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue