From 4eee5a64f5de6d4e85aa065ecd1afdea40ba91ab Mon Sep 17 00:00:00 2001 From: Michael Phan-Ba Date: Sat, 19 Oct 2013 11:52:27 -0700 Subject: [PATCH] Fix typos --- sage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sage.js b/sage.js index b5fd7cd..3dd18f4 100644 --- a/sage.js +++ b/sage.js @@ -866,7 +866,7 @@ Apache License */ put: function(doc /* [query], [headers], [callback] */) { - // prevent acidentally creating index + // prevent accidentally creating index if (!this.name || !doc._id && !doc.id) throw new Error('missing type or id'); return this._(arguments, 1)('PUT', doc._id || doc.id, { b: doc }); }, @@ -894,7 +894,7 @@ Apache License docs = data; return this.post.apply(this, arguments); } else { - // prevent acidentally deleting index + // prevent accidentally deleting index if (!this.name || !docs._id && !docs.id) throw new Error('missing type or id'); return this._(arguments, 1)('DELETE', docs._id || docs.id); } @@ -926,7 +926,7 @@ Apache License * @param {Object} [callback] * @return this */ - mlt : function(id /*, [query], [headers], [callback] */) { + mlt: function(id /* [query], [headers], [callback] */) { return this._(arguments, 1)('GET', id + '/_mlt'); }