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

Commit c2c12c9

Browse files
bewestrvagg
authored andcommitted
better document #del method
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.
1 parent 2410aa3 commit c2c12c9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@ LevelDB will by default fill the in-memory LRU Cache with data from a call to ge
258258
### db.del(key[, options][, callback])
259259
<code>del()</code> is the primary method for removing data from the store.
260260
```js
261-
db.del('foo', function hasError (err) {
262-
console.error('ERROR', err);
263-
throw err;
261+
db.del('foo', function (err) {
262+
if (err)
263+
// handle I/O or other error
264264
});
265265
```
266266

0 commit comments

Comments
 (0)