Skip to content

Commit

Permalink
Small typo fix in 18.6 'bad'-example.
Browse files Browse the repository at this point in the history
Function call 'class()' to 'classed()'.
  • Loading branch information
Cihan Bebek authored and gilbox committed Mar 21, 2016
1 parent dbdfed2 commit 4525de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1710,7 +1710,7 @@ Other Style Guides
.updateCount();
// bad
const leds = stage.selectAll('.led').data(data).enter().append('svg:svg').class('led', true)
const leds = stage.selectAll('.led').data(data).enter().append('svg:svg').classed('led', true)
.attr('width', (radius + margin) * 2).append('svg:g')
.attr('transform', 'translate(' + (radius + margin) + ',' + (radius + margin) + ')')
.call(tron.led);
Expand Down

0 comments on commit 4525de8

Please sign in to comment.