Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
oygen87 committed Jul 29, 2018
1 parent 37ae7c3 commit 6126ec7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/commonjs/README.md
Expand Up @@ -9,15 +9,15 @@ You can also see the info messages webpack prints to console (for both normal an
# example.js

``` javascript
var inc = require('./increment').increment;
var a = 1;
const inc = require('./increment').increment;
const a = 1;
inc(a); // 2
```

# increment.js

``` javascript
var add = require('./math').add;
const add = require('./math').add;
exports.increment = function(val) {
return add(val, 1);
};
Expand All @@ -27,7 +27,7 @@ exports.increment = function(val) {

``` javascript
exports.add = function() {
var sum = 0, i = 0, args = arguments, l = args.length;
let sum = 0, i = 0, args = arguments, l = args.length;
while (i < l) {
sum += args[i++];
}
Expand Down Expand Up @@ -197,4 +197,4 @@ chunk {0} output.js (main) 329 bytes [entry] [rendered]
cjs require ./increment [2] ./example.js 1:10-32
[2] ./example.js 69 bytes {0} [built]
single entry .\example.js main
```
```

0 comments on commit 6126ec7

Please sign in to comment.