]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
"Compound statement" docs: Fix with-statement step indexing (#100286)
authorFrank Dana <ferdnyc@gmail.com>
Fri, 16 Dec 2022 18:43:43 +0000 (13:43 -0500)
committerGitHub <noreply@github.com>
Fri, 16 Dec 2022 18:43:43 +0000 (18:43 +0000)
Back in commit 226e6e7d4326cf91ef37e13528eb1f62de1bb832
an item was added to the list, renumbering all the rest of the
items, but the forward-reference wasn't updated to match.

Doc/reference/compound_stmts.rst

index 9e09515f50d12f9570fb6803fe2917129830a45d..fe9dda933c8071ad6a0b551b136422514b9a93a3 100644 (file)
@@ -506,7 +506,7 @@ The execution of the :keyword:`with` statement with one "item" proceeds as follo
       method returns without an error, then :meth:`__exit__` will always be
       called. Thus, if an error occurs during the assignment to the target list,
       it will be treated the same as an error occurring within the suite would
-      be. See step 6 below.
+      be. See step 7 below.
 
 #. The suite is executed.