Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
Related to GH-22.
  • Loading branch information
wooorm committed Jun 1, 2021
1 parent b7f3d78 commit c37dc82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ npm install vfile-reporter
Say `example.js` contains:

```js
var vfile = require('vfile')
var reporter = require('vfile-reporter')
import {VFile} from 'vfile'
import {reporter} from 'vfile-reporter'

var one = vfile({path: 'test/fixture/1.js'})
var two = vfile({path: 'test/fixture/2.js'})
var one = new VFile({path: 'test/fixture/1.js'})
var two = new VFile({path: 'test/fixture/2.js'})

one.message('Warning!', {line: 2, column: 4})

Expand Down

0 comments on commit c37dc82

Please # to comment.