Skip to content

Commit 8bb2148

Browse files
authored
Merge pull request #25 from berkos/patch-1
Small typo in decorator
2 parents b8b500a + 57cd3a3 commit 8bb2148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

decorator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
We need to vary the responsibilities of an object, adding some features.
55

66
## Solution
7-
In the **Decorator** pattern we create an object that wraps the real one, and implemente the same interface and forwarding method calls. However, before delegating to the real object, it performs the additional feature. Since all decorators implement the same core interface, we can build chains of decorators and assemble a combination of features at runtime.
7+
In the **Decorator** pattern we create an object that wraps the real one, and implements the same interface and forwarding method calls. However, before delegating to the real object, it performs the additional feature. Since all decorators implement the same core interface, we can build chains of decorators and assemble a combination of features at runtime.
88

99
## Example
1010
Below is an implementation of an object that simply writes a text line to a file:

0 commit comments

Comments
 (0)