From 7c3e5aefcd6cc73ebca6ef82799043c5dcc0338d Mon Sep 17 00:00:00 2001 From: Earl Cahill Date: Sat, 6 Feb 2016 00:21:01 -0700 Subject: [PATCH] https://github.com/elastic/elasticsearch-js/issues/357 - fixing separated spelling error --- docs/api_conventions.asciidoc | 2 +- src/lib/client_action.js | 4 ++-- test/integration/yaml_suite/yaml_doc.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/api_conventions.asciidoc b/docs/api_conventions.asciidoc index 23ecb4dc3..2c559f981 100755 --- a/docs/api_conventions.asciidoc +++ b/docs/api_conventions.asciidoc @@ -9,7 +9,7 @@ By default, all api methods accept the following parameters. They are omitted fr `String` -- The HTTP method to use for this request. All of the API methods have their own default. `body`:: -`String, Anything` -- The body to send along with this request. If the body is a string it will be passed along as is, otherwise it is passed to the serializer and converted to either JSON or a newline seperated list of JSON objects based on the API method. +`String, Anything` -- The body to send along with this request. If the body is a string it will be passed along as is, otherwise it is passed to the serializer and converted to either JSON or a newline separated list of JSON objects based on the API method. + NOTE: the https://github.com/fullscale/elastic.js[elastic.js] or https://github.com/danpaz/bodybuilder[bodybuilder] libraries can be used to make building request bodies simpler. diff --git a/src/lib/client_action.js b/src/lib/client_action.js index f01757b90..c5c838e3f 100644 --- a/src/lib/client_action.js +++ b/src/lib/client_action.js @@ -143,7 +143,7 @@ var castType = { } /* falls through */ default: - throw new TypeError('Invalid ' + name + ': expected be a comma seperated list, array, number or string.'); + throw new TypeError('Invalid ' + name + ': expected be a comma separated list, array, number or string.'); } }, 'boolean': function (param, val) { @@ -355,4 +355,4 @@ function commaSepList(str) { return str.split(',').map(function (i) { return i.trim(); }); -} \ No newline at end of file +} diff --git a/test/integration/yaml_suite/yaml_doc.js b/test/integration/yaml_suite/yaml_doc.js index 218932268..f27e9cc86 100644 --- a/test/integration/yaml_suite/yaml_doc.js +++ b/test/integration/yaml_suite/yaml_doc.js @@ -60,7 +60,7 @@ function getVersionFromES(done) { * Transform x.x.x into xxx.xxx.xxx, striping off any text at the end like beta or pre-alpha35 * * @param {String} version - Version number represented as a string - * @return {String} - Version number represented as three numbers, seperated by -, all numbers are + * @return {String} - Version number represented as three numbers, separated by -, all numbers are * padded with 0 and will be three characters long so the strings can be compared. */ function versionToComparableString(version, def) { @@ -84,7 +84,7 @@ function versionToComparableString(version, def) { * Compare a version range to the ES_VERSION, determining if the current version * falls within the range. * - * @param {String} rangeString - a string representing two version numbers seperated by a "-" + * @param {String} rangeString - a string representing two version numbers separated by a "-" * @return {Boolean} - is the current version within the range (inclusive) */ function rangeMatchesCurrentVersion(rangeString, done) {