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 }); ```