[Python-checkins] Fix syntax error in struct doc example (GH-102160)
miss-islington
webhook-mailer at python.org
Wed Feb 22 19:02:44 EST 2023
https://github.com/python/cpython/commit/780dec8a9468a5f31c9f7ebfc4f673ed4ed9e0e8
commit: 780dec8a9468a5f31c9f7ebfc4f673ed4ed9e0e8
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2023-02-22T16:02:38-08:00
summary:
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 at udel.edu>
files:
M Doc/library/struct.rst
diff --git a/Doc/library/struct.rst b/Doc/library/struct.rst
index 50d70731f775..12f247462fa6 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
More information about the Python-checkins
mailing list