Skip to content

Commit bc9faf6

Browse files
author
Tomek Wiszniewski
committed
Bring back note about braces
1 parent 619ff1c commit bc9faf6

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
@@ -699,7 +699,7 @@ Other Style Guides
699699
});
700700
```
701701
702-
- [8.2](#8.2) <a name='8.2'></a> If the function body consists of a single expression, feel free to omit the braces and use the implicit return. Otherwise use a `return` statement.
702+
- [8.2](#8.2) <a name='8.2'></a> If the function body consists of a single expression, feel free to omit the braces and use the implicit return. Otherwise add the parentheses, braces, and use a `return` statement.
703703
704704
> Why? Syntactic sugar. It reads well when multiple functions are chained together.
705705

0 commit comments

Comments
 (0)