diff options
Diffstat (limited to 'src/tests/documentation.py')
-rw-r--r-- | src/tests/documentation.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/documentation.py b/src/tests/documentation.py index 3ddc6a1..e2cf247 100644 --- a/src/tests/documentation.py +++ b/src/tests/documentation.py @@ -873,7 +873,7 @@ def coro_to_func(coro, *args, **kw): return get_event_loop().run_until_complete(coro(*args, **kw)) ``` -Notice the diffence: the caller in ``log_start_stop`` was a coroutine +Notice the difference: the caller in ``log_start_stop`` was a coroutine function and the associate decorator was converting coroutines in coroutines; the caller in ``coro_to_func`` is a regular function and converts coroutines -> functions. @@ -1000,7 +1000,7 @@ inherited from the parent: ``` -You can introspect the precedence used by the dispath algorithm by +You can introspect the precedence used by the dispatch algorithm by calling ``.dispatch_info(*types)``: ```python @@ -1194,7 +1194,7 @@ TypeError: _memoize() got multiple values for ... 'func' The error message looks really strange... until you realize that the caller function `_memoize` uses `func` as first argument, so there is a confusion between the positional argument and the -keywork arguments. +keyword arguments. The solution is to change the name of the first argument in `_memoize`, or to change the implementation like so: |