Skip to content

Commit 6944be0

Browse files
authored
Fix a typo in commas section
Example code block following blockquote(line 2223) was broken as a line break was missing. So I just added single blank line.
1 parent 1541503 commit 6944be0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2221,6 +2221,7 @@ Other Style Guides
22212221
- [19.2](#commas--dangling) Additional trailing comma: **Yup.** eslint: [`comma-dangle`](http://eslint.org/docs/rules/comma-dangle.html) jscs: [`requireTrailingComma`](http://jscs.info/rule/requireTrailingComma)
22222222

22232223
> Why? This leads to cleaner git diffs. Also, transpilers like Babel will remove the additional trailing comma in the transpiled code which means you don't have to worry about the [trailing comma problem](es5/README.md#commas) in legacy browsers.
2224+
22242225
```javascript
22252226
// bad - git diff without trailing comma
22262227
const hero = {

0 commit comments

Comments
 (0)