Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Jul 2, 2018
1 parent 67104d0 commit 09ca8c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class BinOP extends AST {
}
}

class TeneryOP extends AST {
class TerneryOP extends AST {
constructor(exp, a, b) {
super();
Object.defineProperty(this, 'value', {
Expand Down Expand Up @@ -297,7 +297,7 @@ const grammar = {
const e1 = grammar.expression(0);
grammar.advance(':');
const e2 = grammar.expression(0);
return new TeneryOP(left, e1, e2);
return new TerneryOP(left, e1, e2);
}
},
':': {},
Expand Down

0 comments on commit 09ca8c6

Please sign in to comment.