Skip to content

Commit 50ff33d

Browse files
author
Cihan Bebek
committed
Small typo fix in 18.6 'bad'-example.
Function call 'class()' to 'classed()'.
1 parent f4e94ad commit 50ff33d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1710,7 +1710,7 @@ Other Style Guides
17101710
.updateCount();
17111711
17121712
// bad
1713-
const leds = stage.selectAll('.led').data(data).enter().append('svg:svg').class('led', true)
1713+
const leds = stage.selectAll('.led').data(data).enter().append('svg:svg').classed('led', true)
17141714
.attr('width', (radius + margin) * 2).append('svg:g')
17151715
.attr('transform', 'translate(' + (radius + margin) + ',' + (radius + margin) + ')')
17161716
.call(tron.led);

0 commit comments

Comments
 (0)