From 4264b4caa582d152541c84cb18ffe5ea0f48f133 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sun, 6 Sep 2015 09:31:18 +0200 Subject: fix my spelling --- treetree.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/treetree.js b/treetree.js index d0d863e..aaf9569 100755 --- a/treetree.js +++ b/treetree.js @@ -241,7 +241,7 @@ function runCmds(cmds,TR){ TR[2]=temp; break; case "POP": - if(TR==false)throw new TTerror("Cannot POP a non-existant root node!"); + if(TR==false)throw new TTerror("Cannot POP a non-existent root node!"); TR=TR[1]; break; case "DUP": @@ -251,7 +251,7 @@ function runCmds(cmds,TR){ break; case "GRB": var inserted_tree,end_tree,rest_tree,i,n; - if(TR==false)throw new TTerror("Cannot GRB from a non-existant root node!"); + if(TR==false)throw new TTerror("Cannot GRB from a non-existent root node!"); if(TR[2]!=false)throw new TTerror("Cannot operate multiple times (in GRB), but the root node ('"+TR[0]+"') has secondary children!"); n=TR[0]; if(typeof n!="number")throw new TTerror("Integer expected (in GRB), got '"+n.toString()+"'!"); @@ -269,7 +269,7 @@ function runCmds(cmds,TR){ break; case "REL": var i,n,inserted_tree,last_inserted,after_inserted,rest_main_tree; - if(TR==false)throw new TTerror("Cannot REL from a non-existant root node!"); + if(TR==false)throw new TTerror("Cannot REL from a non-existent root node!"); if(TR[2]!=false)throw new TTerror("Cannot operate multiple times (in REL), but the root node ('"+TR[0]+"') has secondary children!"); n=TR[0]; if(typeof n!="number")throw new TTerror("Integer expected (in REL), got '"+n.toString()+"'!"); @@ -289,27 +289,27 @@ function runCmds(cmds,TR){ TR[2]=after_inserted; break; case "INT": - if(TR==false)throw new TTerror("Cannot INT a non-existant root node!"); + if(TR==false)throw new TTerror("Cannot INT a non-existent root node!"); TR[0]=parseInt(TR[0],10); break; case "FLT": - if(TR==false)throw new TTerror("Cannot INT a non-existant root node!"); + if(TR==false)throw new TTerror("Cannot INT a non-existent root node!"); TR[0]=parseInt(TR[0],10); break; case "STR": - if(TR==false)throw new TTerror("Cannot INT a non-existant root node!"); + if(TR==false)throw new TTerror("Cannot INT a non-existent root node!"); TR[0]=TR[0].toString(); break; case "NAN": TR=[NaN,TR,false]; break; case "LEN": - if(TR==false)throw new TTerror("Cannot LEN a non-existant root node!"); + if(TR==false)throw new TTerror("Cannot LEN a non-existent root node!"); if(typeof TR[0]!="string")TR=[NaN,TR,false]; else TR=[TR[0].length,TR,false]; break; case "SPL": - if(TR==false)throw new TTerror("Cannot SPL with a non-existant root node!"); + if(TR==false)throw new TTerror("Cannot SPL with a non-existent root node!"); if(TR[1]==false)throw new TTerror("No string in tree for SPL!"); if(TR[2]!=false||TR[1][2]!=false)throw new TTerror("Unexpected secondary children while SPL'ing!"); if(typeof TR[0]!="number"||TR[0]!=~~TR[0])throw new TTerror("Root node is not an integer in SPL!"); @@ -469,7 +469,7 @@ while(true){ } if(TRpreload)TR=TRpreload; -else TR=false; //The Big TRee starts non-existant. Yeah. Well, it is true, sort-of. +else TR=false; //The Big TRee starts non-existent. Yeah. Well, it is true, sort-of. labels=[]; //label index parseLabels(cmds,labels); if(flags.debug){ -- cgit v1.2.3