Skip to content

Commit

Permalink
Fixed a minor typo in the chaining page.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sami Pussinen committed Dec 10, 2015
1 parent 6a82dcf commit a0f55a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/classes_and_objects/chaining.md
Expand Up @@ -66,9 +66,9 @@ class TeaCup
cream: false
addChainedAttributeAccessor(this, 'properties', attr) for attr of @properties

earlgrey = new TeaCup().size('small').type('Earl Grey').sugar('false')
earlgrey = new TeaCup().size('small').type('Earl Grey').sugar(false)

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

earlgrey.sugar true

Expand Down

0 comments on commit a0f55a3

Please sign in to comment.