Skip to content

Commit fa0de51

Browse files
authored
Merge pull request #477 from fPkX6F1nGTX/master
Typo fix and clarified verbiage
2 parents 99b5eb1 + 1841d55 commit fa0de51

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/cheatsheet/decorators.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ def foo(bar):
106106

107107
## Class based decorators
108108

109-
To decorate a class methos, you must define the decorator within the class. When
110-
only the implicit argument `self` is passed to the method, without any other
109+
To decorate a class method, you must define the decorator within the class. When
110+
only the implicit argument `self` is passed to the method, without any explicit
111111
additional arguments, you must make a separate decorator for only those methods
112-
without any additional arguments. An example of this is when you want to catch
113-
and print exceptions in a certain way.
112+
without any additional arguments. An example of this, shown below, is when you
113+
want to catch and print exceptions in a certain way.
114114

115115
```python
116116
class DecorateMyMethod:

0 commit comments

Comments
 (0)