Skip to content

Commit 2fd9c30

Browse files
committed
Merge pull request coffeescript-cookbook#136 from SamiPussinen/chaining-typo-fix
Fixed a minor typo in the chaining page.
2 parents 6a82dcf + 7fa9559 commit 2fd9c30

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

authors.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ The following people are totally rad and awesome because they have contributed r
3434
* Mike Moore *[email protected]*
3535
* Peter Hellberg *[email protected]*
3636
* Jamie Gaskins *[email protected]*
37+
* Sami Pussinen *[email protected]*
3738
* ...You! What are you waiting for? Check out the [contributing]({{ site.baseurl }}/contributing) section and get cracking!
3839

3940
# Designers

chapters/classes_and_objects/chaining.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ class TeaCup
6666
cream: false
6767
addChainedAttributeAccessor(this, 'properties', attr) for attr of @properties
6868

69-
earlgrey = new TeaCup().size('small').type('Earl Grey').sugar('false')
69+
earlgrey = new TeaCup().size('small').type('Earl Grey').sugar(false)
7070

71-
earlgrey.properties # => { size: 'small', type: 'Earl Grey', sugar: false }
71+
earlgrey.properties # => { size: 'small', type: 'Earl Grey', sugar: false, cream: false }
7272

7373
earlgrey.sugar true
7474

0 commit comments

Comments
 (0)