"existance" -> "existence"

This commit is contained in:
Andrew Clark 2016-03-31 10:51:37 -07:00
parent 59dc1bf84f
commit d264d92b9b

View File

@ -396,7 +396,7 @@ function tokenizer(input) {
// isn't actually important for us to store as a token. We would only throw // isn't actually important for us to store as a token. We would only throw
// it out later. // it out later.
// //
// So here we're just going to test for existance and if it does exist we're // So here we're just going to test for existence and if it does exist we're
// going to just `continue` on. // going to just `continue` on.
var WHITESPACE = /\s/; var WHITESPACE = /\s/;
if (WHITESPACE.test(char)) { if (WHITESPACE.test(char)) {
@ -666,7 +666,7 @@ function traverser(ast, visitor) {
// pass both to our visitor methods. // pass both to our visitor methods.
function traverseNode(node, parent) { function traverseNode(node, parent) {
// We start by testing for the existance of a method on the visitor with a // We start by testing for the existence of a method on the visitor with a
// matching `type`. // matching `type`.
var method = visitor[node.type]; var method = visitor[node.type];