Skip to content

Commit 2ff7d79

Browse files
ferdnycmiss-islington
authored andcommitted
"Compound statement" docs: Fix with-statement step indexing (pythonGH-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 <[email protected]>
1 parent 9d2dcbb commit 2ff7d79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/compound_stmts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ The execution of the :keyword:`with` statement with one "item" proceeds as follo
506506
method returns without an error, then :meth:`__exit__` will always be
507507
called. Thus, if an error occurs during the assignment to the target list,
508508
it will be treated the same as an error occurring within the suite would
509-
be. See step 6 below.
509+
be. See step 7 below.
510510

511511
#. The suite is executed.
512512

0 commit comments

Comments
 (0)