Skip to content

Commit aaba849

Browse files
gibson042leobalter
authored andcommitted
Clarify "grouping" parentheses (#208)
1 parent b835fde commit aaba849

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

contributors.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@
2828
* Duc Nguyen [@ducntq](https://twitter.com/ducntq), [github](https://github.com/ducntq)
2929
* James Young [@jamsyoung](http://twitter.com/jamsyoung), [github](https://github.com/jamsyoung)
3030
* Calvin Jeng [@l0ckys](http://twitter.com/l0ckys), [github](https://github.com/lockys)
31+
* Richard Gibson [@gibson042](http://twitter.com/gibson042), [github](https://github.com/gibson042)

readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
* Duc Nguyen [@ducntq](https://twitter.com/ducntq), [github](https://github.com/ducntq)
3434
* James Young [@jamsyoung](http://twitter.com/jamsyoung), [github](https://github.com/jamsyoung)
3535
* Hao-Wei Jeng [@l0ckys](http://twitter.com/l0ckys), [github](https://github.com/lockys)
36+
* Richard Gibson [@gibson042](http://twitter.com/gibson042), [github](https://github.com/gibson042)
3637

3738

3839
## All code in any code-base should look like a single person typed it, no matter how many people contributed.
@@ -411,9 +412,9 @@ The following sections outline a _reasonable_ style guide for modern JavaScript
411412
// Single argument string literal, no space
412413
foo("bar");
413414
414-
// Inner grouping parens, no space
415+
// Expression parens, no space
415416
if ( !("foo" in obj) ) {
416-
417+
obj = (obj.bar || defaults).baz;
417418
}
418419
419420
```

0 commit comments

Comments
 (0)