Skip to content

Commit 0f61020

Browse files
"Compound statement" docs: Fix with-statement step indexing (GH-100286)
Back in commit 226e6e7 an item was added to the list, renumbering all the rest of the items, but the forward-reference wasn't updated to match. (cherry picked from commit f23236a) Co-authored-by: Frank Dana <ferdnyc@gmail.com>
1 parent f5f68ff commit 0f61020

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/compound_stmts.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ The execution of the :keyword:`with` statement with one "item" proceeds as follo
416416
method returns without an error, then :meth:`__exit__` will always be
417417
called. Thus, if an error occurs during the assignment to the target list,
418418
it will be treated the same as an error occurring within the suite would
419-
be. See step 6 below.
419+
be. See step 7 below.
420420

421421
#. The suite is executed.
422422

0 commit comments

Comments
 (0)