Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
JS Style Guide: Proper comment style even for placeholders
  • Loading branch information
scottgonzalez committed Apr 2, 2015
1 parent ca1a3a4 commit ad04bcc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pages/style-guide/js.md
Expand Up @@ -95,8 +95,10 @@ for ( ; i < 100; i++ ) {
}

try {

// Expressions
} catch ( e ) {

// Expressions
}

Expand All @@ -120,10 +122,12 @@ foo( {
} );

foo( function() {

// Do stuff
}, options );

foo( data, function() {

// Do stuff
} );
```
Expand Down Expand Up @@ -345,6 +349,7 @@ Inline comments are allowed as an exception when used to annotate special argume

```js
function foo( types, selector, data, fn, /* INTERNAL */ one ) {

// Do stuff
}
```
Expand Down

0 comments on commit ad04bcc

Please sign in to comment.