Skip to content

Commit c09dc3c

Browse files
authored
Corrected Grammer (#2463)
`handle_keyerror` and `handle_indexerror` should be represented with `(s)` e.g `handle_indexerrors`
1 parent 22c0fa1 commit c09dc3c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/source/reference-core.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -748,8 +748,8 @@ callbacks::
748748
... # handle each IndexError
749749

750750
with catch({
751-
KeyError: handle_keyerror,
752-
IndexError: handle_indexerror
751+
KeyError: handle_keyerrors,
752+
IndexError: handle_indexerrors
753753
}):
754754
async with trio.open_nursery() as nursery:
755755
nursery.start_soon(broken1)
@@ -764,7 +764,7 @@ inside the handler function(s) with the ``nonlocal`` keyword::
764764
myflag = True
765765

766766
myflag = False
767-
with catch({KeyError: handle_keyerror}):
767+
with catch({KeyError: handle_keyerrors}):
768768
async with trio.open_nursery() as nursery:
769769
nursery.start_soon(broken1)
770770

0 commit comments

Comments
 (0)