Permalink
Browse files

Merge branch 'patch-1' of https://github.com/jlank/nano

* 'patch-1' of https://github.com/jlank/nano:
  Updated section in README.md pertaining to db.head(doc, [callback]).  The second parameter to this call should be a callback not a parameter object according to the source, line 568.
  • Loading branch information...
2 parents c10c6fb + 710d49e commit dfe0c400509c174cf93a6d7f4154cc879e058e29 @dscape committed Jun 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
@@ -316,12 +316,12 @@ alice.get('rabbit', { revs_info: true }, function(err, body) {
});
```
-### db.head(docname, [params], [callback])
+### db.head(docname, [callback])
same as `get` but lightweight version that returns headers only.
``` js
-alice.head('rabbit', { revs_info: true }, function(err, _, headers) {
+alice.head('rabbit', function(err, _, headers) {
if (!err)
console.log(headers);
});

0 comments on commit dfe0c40

Please sign in to comment.