Permalink
Browse files

Updates based on @gflarity to make example accurate again.

  • Loading branch information...
1 parent 186dcab commit 20363bcb78052b56775141776642a20dce9e3b55 @my8bird committed Jul 11, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 README.md
View
@@ -23,12 +23,13 @@ base to implement things like CouchDB.
## Usage
```js
+var leveldb = require('leveldb');
leveldb.open("path/to/my/db", { create_if_missing: true }, onOpen);
function onOpen(err, db) {
var key = "mykey";
db.put(key, "My Value!", function(err) {
- db.getSync(key, function(err, value) {
+ db.get(key, function(err, value) {
console.dir(value); // prints: My Value!
db.del(key);
});

0 comments on commit 20363bc

Please sign in to comment.