Commit 954909a8 authored by Tyler Neely's avatar Tyler Neely

clarify example

parent e418cdbd
...@@ -7,10 +7,11 @@ rust-rocksdb ...@@ -7,10 +7,11 @@ rust-rocksdb
``` ```
fn f() { fn f() {
// arguments are path for rocksdb files, create if missing
let db = Rocksdb::open("testdb", true).unwrap(); let db = Rocksdb::open("testdb", true).unwrap();
db.put(b"a key", b"a value"); 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(); db.close();
} }
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment