Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Correct a typo
  • Loading branch information
wisesimpson authored Jan 12, 2022
1 parent 1832e0b commit d318ce0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ var xml = '<foo></foo>';

// With parser
var parser = new xml2js.Parser(/* options */);
parser.parseStringPromise(data).then(function (result) {
parser.parseStringPromise(xml).then(function (result) {
console.dir(result);
console.log('Done');
})
Expand All @@ -122,7 +122,7 @@ parser.parseStringPromise(data).then(function (result) {
});

// Without parser
xml2js.parseStringPromise(data /*, options */).then(function (result) {
xml2js.parseStringPromise(xml /*, options */).then(function (result) {
console.dir(result);
console.log('Done');
})
Expand Down

0 comments on commit d318ce0

Please sign in to comment.