Skip to content

Commit

Permalink
Fix small typos in index.rst (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
beedub authored Feb 6, 2024
1 parent eae11ef commit 22485d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ Wrappers
A *hookimpl* can be marked with the ``"wrapper"`` option, which indicates
that the function will be called to *wrap* (or surround) all other normal
*hookimpl* calls. A *hook wrapper* can thus execute some code ahead and after the
execution of all corresponding non-wrappper *hookimpls*.
execution of all corresponding non-wrapper *hookimpls*.

Much in the same way as a :py:func:`@contextlib.contextmanager <python:contextlib.contextmanager>`,
*hook wrappers* must be implemented as generator function with a single ``yield`` in its body:
Expand Down Expand Up @@ -449,7 +449,7 @@ Old-style wrappers
A *hookimpl* can be marked with the ``"hookwrapper"`` option, which indicates
that the function will be called to *wrap* (or surround) all other normal
*hookimpl* calls. A *hookwrapper* can thus execute some code ahead and after the
execution of all corresponding non-wrappper *hookimpls*.
execution of all corresponding non-wrapper *hookimpls*.

*hookwrappers* must be implemented as generator function with a single ``yield`` in its body:

Expand Down

0 comments on commit 22485d1

Please sign in to comment.