Skip to content

Commit

Permalink
Fix the SAXParser example (inikulin#316)
Browse files Browse the repository at this point in the history
- Added destructuring
- Small typo
  • Loading branch information
mvasilkov authored Apr 29, 2020
1 parent 0c260f9 commit 9a5d73e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/parse5-sax-parser/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ const fs = require('fs');
const file = fs.createWriteStream('google.com.html');
const parser = new SAXParser();

parser.on('doctype', (name, publicId, systemId) => {
// Process doctype info ans stop parsing
parser.on('doctype', ({ name, publicId, systemId }) => {
// Process doctype info and stop parsing
...
parser.stop();
});
Expand Down

0 comments on commit 9a5d73e

Please sign in to comment.