Skip to content

Commit aacb089

Browse files
committed
faif#184 - Correcting typos in the description of the Decorator pattern
1 parent 4543891 commit aacb089

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

structural/decorator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
"""
33
*What is this pattern about?
4-
The Decorator pattern is used to dinamically add a new feature to an
4+
The Decorator pattern is used to dynamically add a new feature to an
55
object without changing its implementation. It differs from
66
inheritance because the new feature is added only to that particular
77
object, not to the entire subclass.
@@ -11,7 +11,7 @@
1111
italic) to a text by appending the corresponding tags (<b> and
1212
<i>). Also, we can see that decorators can be applied one after the other,
1313
since the original text is passed to the bold wrapper, which in turn
14-
is passsed to the italic wrapper.
14+
is passed to the italic wrapper.
1515
1616
*Where is the pattern used practically?
1717
The Grok framework uses decorators to add functionalities to methods,

0 commit comments

Comments
 (0)