Skip to content

Commit 04c8944

Browse files
committed
Revert spelling of smilies to smiles, now it stays as smilies
1 parent 1147e4a commit 04c8944

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

chapters/design_patterns/decorator.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,18 @@ The TextProcessor serves the role of Decorator by binding the individual, specia
7171
We can even modify the existing Decorator object on the fly:
7272

7373
{% highlight coffeescript %}
74-
smiles =
74+
smilies =
7575
':)' : "smile"
7676
':D' : "huge_grin"
7777
':(' : "frown"
7878
';)' : "wink"
7979

80-
smileExpander = (line) ->
80+
smilieExpander = (line) ->
8181
if line
82-
(line = line.replace symbol, "<img src='#{text}.png' alt='#{text}' />") for symbol, text of smiles
82+
(line = line.replace symbol, "<img src='#{text}.png' alt='#{text}' />") for symbol, text of smilies
8383
line
8484

85-
processor.processors.unshift smileExpander
85+
processor.processors.unshift smilieExpander
8686

8787
processor.processString "# A header that makes you :) // you may even laugh"
8888

0 commit comments

Comments
 (0)