Skip to content

Commit a0f55a3

Browse files
author
Sami Pussinen
committed
Fixed a minor typo in the chaining page.
1 parent 6a82dcf commit a0f55a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)