From 50ff33de88f6f1363a27e61d59f2c950cf0bd9f8 Mon Sep 17 00:00:00 2001 From: Cihan Bebek Date: Sun, 21 Feb 2016 21:38:33 +0200 Subject: [PATCH] Small typo fix in 18.6 'bad'-example. Function call 'class()' to 'classed()'. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 37bb6433..2bdac55f 100644 --- a/README.md +++ b/README.md @@ -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);