Skip to content

Commit

Permalink
Docs: Use Linter instead of linter in Nodejs API page (#10864)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Sep 17, 2018
1 parent b3e3cb1 commit 14f4e46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/developer-guide/nodejs-api.md
Expand Up @@ -117,7 +117,8 @@ var messages = linter.verify("var foo;", {

// or using SourceCode

var linter = require("eslint").linter,
var Linter = require("eslint").Linter,
linter = new Linter(),
SourceCode = require("eslint").SourceCode;

var code = new SourceCode("var foo = bar;", ast);
Expand Down

0 comments on commit 14f4e46

Please sign in to comment.