Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepb committed Oct 19, 2013
1 parent 637e67b commit 4eee5a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sage.js
Expand Up @@ -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 });
},
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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');
}

Expand Down

0 comments on commit 4eee5a6

Please sign in to comment.