Skip to content

Commit a2fd1b8

Browse files
authored
Fix with-statement step indexing
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.
1 parent 101cfe6 commit a2fd1b8

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)