From e20e2117f7d1cc50a679d679484bd9d59a620422 Mon Sep 17 00:00:00 2001 From: Andrew Widdersheim Date: Sun, 5 Jul 2015 21:22:40 -0400 Subject: [PATCH] Fix 'paranthesis' typo to 'parenthesis' This typo is most noticable in the Graphite lexer error hint message. --- public/app/plugins/datasource/graphite/parser.js | 4 ++-- public/test/specs/parser-specs.js | 4 ++-- public/vendor/bootstrap/bootstrap.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/app/plugins/datasource/graphite/parser.js b/public/app/plugins/datasource/graphite/parser.js index 242068f9d85..2ff15cda5b0 100644 --- a/public/app/plugins/datasource/graphite/parser.js +++ b/public/app/plugins/datasource/graphite/parser.js @@ -142,13 +142,13 @@ define([ name: this.consumeToken().value, }; - // consume left paranthesis + // consume left parenthesis this.consumeToken(); node.params = this.functionParameters(); if (!this.match(')')) { - this.errorMark('Expected closing paranthesis'); + this.errorMark('Expected closing parenthesis'); } this.consumeToken(); diff --git a/public/test/specs/parser-specs.js b/public/test/specs/parser-specs.js index 9fead11a9c3..8f5dd1b37ef 100644 --- a/public/test/specs/parser-specs.js +++ b/public/test/specs/parser-specs.js @@ -118,11 +118,11 @@ define([ expect(rootNode.pos).to.be(19); }); - it('invalid function expression missing closing paranthesis', function() { + it('invalid function expression missing closing parenthesis', function() { var parser = new Parser('sum(test'); var rootNode = parser.getAst(); - expect(rootNode.message).to.be('Expected closing paranthesis instead found end of string'); + expect(rootNode.message).to.be('Expected closing parenthesis instead found end of string'); expect(rootNode.pos).to.be(9); }); diff --git a/public/vendor/bootstrap/bootstrap.js b/public/vendor/bootstrap/bootstrap.js index bec8dee3c3c..62e23675410 100644 --- a/public/vendor/bootstrap/bootstrap.js +++ b/public/vendor/bootstrap/bootstrap.js @@ -2069,7 +2069,7 @@ , move: function (e) { if (!this.shown) return - // grafana change, shift+left paranthesis + // grafana change, shift+left parenthesis if (e.shiftKey && e.keyCode === 40) { return; }