Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
better document #del method
Browse files Browse the repository at this point in the history
Thanks for the feedback, @rvagg.
Based on your feedback and some double checking via
https://github.com/rvagg/node-leveldown/blob/5d552d750170bedd0656d2e6d82673556fa0ea0d/deps/leveldb/leveldb-1.17.0/db/db_impl.cc#L1437-L1441

I've gone with a comment similar to the preceding stanza.
Also removed the curly braces.
  • Loading branch information
bewest authored and rvagg committed Dec 25, 2014
1 parent 2410aa3 commit c2c12c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ LevelDB will by default fill the in-memory LRU Cache with data from a call to ge
### db.del(key[, options][, callback])
<code>del()</code> is the primary method for removing data from the store.
```js
db.del('foo', function hasError (err) {
console.error('ERROR', err);
throw err;
db.del('foo', function (err) {
if (err)
// handle I/O or other error
});
```

Expand Down

0 comments on commit c2c12c9

Please sign in to comment.