Skip to content

Commit e777748

Browse files
committed
Fix example in README.md
1 parent 7064016 commit e777748

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Headings by depth:
1919

2020
```js
2121
var Index = require('unist-util-index'),
22+
fs = require('fs'),
2223
remark = require('remark'),
2324
toString = require('mdast-util-to-string');
2425

@@ -41,14 +42,14 @@ index.get('unist')
4142
//=> [ { type: 'definition',
4243
// identifier: 'unist',
4344
// title: null,
44-
// link: 'https://github.com/wooorm/unist',
45+
// url: 'https://github.com/wooorm/unist',
4546
// position: Position { start: [Object], end: [Object], indent: [] } } ]
4647

4748
index.get('travis')
4849
//=> [ { type: 'definition',
4950
// identifier: 'travis',
5051
// title: null,
51-
// link: 'https://travis-ci.org/eush77/unist-util-index',
52+
// url: 'https://travis-ci.org/eush77/unist-util-index',
5253
// position: Position { start: [Object], end: [Object], indent: [] } } ]
5354
```
5455

0 commit comments

Comments
 (0)