Skip to content

Commit

Permalink
Docs: fix a misleading example in one-var
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Feb 5, 2019
1 parent 9441ce7 commit 137dc43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/rules/one-var.md
Expand Up @@ -324,7 +324,9 @@ Examples of **correct** code for this rule with the `{ separateRequires: true }`

var foo = require("foo");
var bar = "bar";
```

```js
var foo = require("foo"),
bar = require("bar");
```
Expand Down

0 comments on commit 137dc43

Please sign in to comment.