Skip to content

Commit

Permalink
Fix const usage and trim whitespace
Browse files Browse the repository at this point in the history
* const cannot be used in the mutation example
* Trim trailing whitespace from a few lines
  • Loading branch information
Chris Welsh committed Apr 22, 2016
1 parent 486da9f commit b6bd5ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ The principles we use to guide low-level decision making are:
## Third-party Dependencies

1. [SystemJS](https://github.com/systemjs/systemjs)

- _Why_: SystemJS is an ES6 module loader that enables us to load assets in development and transpile ES6 to ES5 in production.


```js
import {dialogControllerModule} from './dialog.controller';
import {dialogControllerModule} from './dialog.controller';
import template from './dialog.template.html!text';
```

Expand Down Expand Up @@ -727,7 +727,7 @@ __Why__: Avoiding mutation in service objects makes it possible to reason about

```js
// Recommend
const events = [...];
let events = [...];
events = EventPresenterService.present(events);

// Avoid
Expand Down

0 comments on commit b6bd5ad

Please sign in to comment.