From 2a29cd9409953e45f5a2d9932d6d2ed94820ca94 Mon Sep 17 00:00:00 2001 From: rocky Date: Tue, 11 Jun 2019 21:07:59 -0400 Subject: [PATCH] Small spelling typos --- remix-lib/src/astWalker.js | 2 +- remix-lib/src/eventManager.js | 12 ++++++------ remix-lib/src/sourceMappingDecoder.js | 4 ++-- remix-lib/src/util.js | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/remix-lib/src/astWalker.js b/remix-lib/src/astWalker.js index a5de98a0f6..92ce33227c 100644 --- a/remix-lib/src/astWalker.js +++ b/remix-lib/src/astWalker.js @@ -11,7 +11,7 @@ function AstWalker () { * @param {Object} ast - AST node * @param {Object or Function} callback - if (Function) the function will be called for every node. * - if (Object) callback[] will be called for - * every node of type . callback["*"] will be called fo all other nodes. + * every node of type . callback["*"] will be called for all other nodes. * in each case, if the callback returns false it does not descend into children. * If no callback for the current type, children are visited. */ diff --git a/remix-lib/src/eventManager.js b/remix-lib/src/eventManager.js index 616e0f3732..ce3c8387b5 100644 --- a/remix-lib/src/eventManager.js +++ b/remix-lib/src/eventManager.js @@ -6,12 +6,12 @@ function eventManager () { } /* - * Unregister a listenner. + * Unregister a listener. * Note that if obj is a function. the unregistration will be applied to the dummy obj {}. * * @param {String} eventName - the event name * @param {Object or Func} obj - object that will listen on this event - * @param {Func} func - function of the listenners that will be executed + * @param {Func} func - function of the listeners that will be executed */ eventManager.prototype.unregister = function (eventName, obj, func) { if (!this.registered[eventName]) { @@ -29,12 +29,12 @@ eventManager.prototype.unregister = function (eventName, obj, func) { } /* - * Register a new listenner. + * Register a new listener. * Note that if obj is a function, the function registration will be associated with the dummy object {} * * @param {String} eventName - the event name * @param {Object or Func} obj - object that will listen on this event - * @param {Func} func - function of the listenners that will be executed + * @param {Func} func - function of the listeners that will be executed */ eventManager.prototype.register = function (eventName, obj, func) { if (!this.registered[eventName]) { @@ -52,10 +52,10 @@ eventManager.prototype.register = function (eventName, obj, func) { /* * trigger event. - * Every listenner have their associated function executed + * Every listener have their associated function executed * * @param {String} eventName - the event name - * @param {Array}j - argument that will be passed to the exectued function. + * @param {Array}j - argument that will be passed to the executed function. */ eventManager.prototype.trigger = function (eventName, args) { if (!this.registered[eventName]) { diff --git a/remix-lib/src/sourceMappingDecoder.js b/remix-lib/src/sourceMappingDecoder.js index ce5fc50ed8..602697cf81 100644 --- a/remix-lib/src/sourceMappingDecoder.js +++ b/remix-lib/src/sourceMappingDecoder.js @@ -70,7 +70,7 @@ SourceMappingDecoder.prototype.decompressAll = function (mapping) { * Retrieve line/column position of each source char * * @param {String} source - contract source code - * @return {Arrray} returns an array containing offset of line breaks + * @return {Array} returns an array containing offset of line breaks */ SourceMappingDecoder.prototype.getLinebreakPositions = function (source) { var ret = [] @@ -81,7 +81,7 @@ SourceMappingDecoder.prototype.getLinebreakPositions = function (source) { } /** - * Retrieve the line/colum position for the given source mapping + * Retrieve the line/column position for the given source mapping * * @param {Object} sourceLocation - object containing attributes {source} and {length} * @param {Array} lineBreakPositions - array returned by the function 'getLinebreakPositions' diff --git a/remix-lib/src/util.js b/remix-lib/src/util.js index a30b8b9d56..6a21090e63 100644 --- a/remix-lib/src/util.js +++ b/remix-lib/src/util.js @@ -3,7 +3,7 @@ var ethutil = require('ethereumjs-util') /* contains misc util: @TODO should be splitted - - hex convertion + - hex conversion - binary search - CALL related look up - sha3 calculation