Skip to content

Commit 57cd3a3

Browse files
authored
Small typo in decorator
1 parent b8b500a commit 57cd3a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

decorator.md

+1-1
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)