Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0cf78ac

Browse filesBrowse files
dancerphilljharb
authored andcommitted
[guide] Fix 19.6 example code
1 parent 730b749 commit 0cf78ac
Copy full SHA for 0cf78ac

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2619,7 +2619,7 @@ Other Style Guides
26192619
// good
26202620
const leds = stage.selectAll('.led').data(data);
26212621
const svg = leds.enter().append('svg:svg');
2622-
svg.classed('led', true).attr(width', (radius + margin) * 2);
2622+
svg.classed('led', true).attr('width', (radius + margin) * 2);
26232623
const g = svg.append('svg:g');
26242624
g.attr('transform', `translate(${radius + margin},${radius + margin})`).call(tron.led);
26252625
```

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.