diff options
author | Michele Simionato <michele.simionato@gmail.com> | 2021-04-10 09:54:42 +0200 |
---|---|---|
committer | Michele Simionato <michele.simionato@gmail.com> | 2021-04-10 09:54:42 +0200 |
commit | 8b264300d6c560c6f608b645f63de6865776371b (patch) | |
tree | 2f3d0d41fdb7eb82409f999a30da1a4c18b49491 /src/tests | |
parent | 949e8e0dbc251f3aa30546761f5dc220822d6e7e (diff) | |
download | python-decorator-git-8b264300d6c560c6f608b645f63de6865776371b.tar.gz |
Fixed a few mispellings
Diffstat (limited to 'src/tests')
-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: |