diff --git a/README.md b/README.md index c55e355..70be1fb 100644 --- a/README.md +++ b/README.md @@ -2211,7 +2211,7 @@ Coroutine ### Helper Decorator * **All coroutines must first be "primed" by calling `'next()'`.** * **Remembering to call next() is easy to forget.** -* **Solved by wrapping functions that return a coroutine with a decorator:** +* **Solved by wrapping coroutine functions with a following decorator:** ```python def coroutine(func): diff --git a/index.html b/index.html index ebc63bc..d7d12e7 100644 --- a/index.html +++ b/index.html @@ -1915,7 +1915,7 @@ ValueError: malformed node or string

Helper Decorator

def coroutine(func):
     def out(*args, **kwargs):
         cr = func(*args, **kwargs)