diff options
author | Michele Simionato <michele.simionato@gmail.com> | 2016-10-08 15:56:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-08 15:56:57 +0200 |
commit | 7d24926595c7719a7118e8b821a865f33a0445c0 (patch) | |
tree | 217ccf08d619094cb9cd77bc6404d13bfa76d5f7 | |
parent | b05cc016bd4d9826b64f1f44172db9b56b0f8af3 (diff) | |
parent | ab6cc95a17a92089cd0e2ad58dfd77aac3f29d5c (diff) | |
download | python-decorator-git-7d24926595c7719a7118e8b821a865f33a0445c0.tar.gz |
Merge pull request #38 from stepshal/misspellings
Fix misspellings
-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 8aa33c4..e651281 100644 --- a/src/tests/documentation.py +++ b/src/tests/documentation.py @@ -726,7 +726,7 @@ $$XMLWriter Here, you want to dispatch on the *second* argument; the first is already taken by ``self``. The ``dispatch_on`` decorator factory allows you to specify the dispatch argument simplpy by passing its name as a string. (Note -that if you mispell the name you will get an error.) +that if you misspell the name you will get an error.) The decorated function decorated is turned into a generic function, and it is called if there are no more specialized implementations. @@ -1038,7 +1038,7 @@ You see here the inner call to the decorator ``trace``, which calls This latter reference is due to the fact that internally, the decorator module uses ``exec`` to generate the decorated function. Notice that -``exec`` is *not* responsibile for the performance penalty, since is the +``exec`` is *not* responsible for the performance penalty, since is the called *only once* (at function decoration time); it is *not* called each time the decorated function is called. @@ -1341,7 +1341,7 @@ def memoize(f): """ A simple memoize implementation. It works by adding a .cache dictionary to the decorated function. The cache will grow indefinitely, so it is - your responsability to clear it, if needed. + your responsibility to clear it, if needed. """ f.cache = {} return decorate(f, _memoize) |