Skip to content

Commit

Permalink
Fix grammatical error in comment
Browse files Browse the repository at this point in the history
Respond to PR feedback by updating comments
  • Loading branch information
robertknight committed Oct 2, 2020
1 parent f2b2540 commit 4033f87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/annotator/anchoring/xpath-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function getPathSegment(node) {
}

/**
* A simple XPath generator using which can generate XPaths of the form
* A simple XPath generator which can generate XPaths of the form
* /tag[index]/tag[index].
*
* @param {Node} node - The node to generate a path to
Expand All @@ -79,7 +79,7 @@ export function xpathFromNode(node, root) {
elem = elem.parentNode;
}
xpath = '/' + xpath;
xpath = xpath.replace(/\/$/, '');
xpath = xpath.replace(/\/$/, ''); // Remove trailing slash

return xpath;
}
Expand Down

0 comments on commit 4033f87

Please sign in to comment.