From c2c12c9380d1f24b2cb93e18ad7947d127d15bbf Mon Sep 17 00:00:00 2001 From: Ben West Date: Sat, 15 Nov 2014 15:14:06 -0800 Subject: [PATCH] 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. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 085b62b9..8778807c 100644 --- a/README.md +++ b/README.md @@ -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]) del() 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 }); ```