Skip to content

Commit 138c2e6

Browse files
[3.11] "Compound statement" docs: Fix with-statement step indexing (pythonGH-100286) (pythonGH-100300)
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 138c2e6

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
@@ -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)