clarify example

master
Tyler Neely 10 years ago
parent e418cdbdc5
commit 954909a870
  1. 3
      README.md

@ -7,10 +7,11 @@ rust-rocksdb
```
fn f() {
// arguments are path for rocksdb files, create if missing
let db = Rocksdb::open("testdb", true).unwrap();
db.put(b"a key", b"a value");
...
let r = db.get(b"k1").unwrap();
let r = db.get(b"this is key").unwrap();
db.close();
}
```

Loading…
Cancel
Save