Skip to content

Commit 2f5877d

Browse files
authored
Update README.md
1 parent 564546c commit 2f5877d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ dir. Although the ordering will be safe, a specific order is not guaranteed.
2424
A simple example:
2525

2626
```js
27-
var FSTree = require('fs-tree-diff');
28-
var current = FSTree.fromPaths([
27+
const FSTree = require('fs-tree-diff');
28+
const current = FSTree.fromPaths([
2929
'a.js'
3030
]);
3131

32-
var next = FSTree.fromPaths([
32+
const next = FSTree.fromPaths([
3333
'b.js'
3434
]);
3535

@@ -42,14 +42,14 @@ current.calculatePatch(next) === [
4242
A slightly more complicated example:
4343

4444
```js
45-
var FSTree = require('fs-tree-diff');
46-
var current = FSTree.fromPaths([
45+
const FSTree = require('fs-tree-diff');
46+
const current = FSTree.fromPaths([
4747
'a.js',
4848
'b/',
4949
'b/f.js'
5050
]);
5151

52-
var next = FSTree.fromPaths([
52+
const next = FSTree.fromPaths([
5353
'b.js',
5454
'b/',
5555
'b/c/',

0 commit comments

Comments
 (0)