From c08fd5cb93d1d3bdbf4c538ebdb129cf04b44af0 Mon Sep 17 00:00:00 2001 From: Mohanson Date: Wed, 13 Feb 2019 19:39:14 +0800 Subject: [PATCH] Handle std::result::Result in examples --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index caf2d20..27fe15b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -23,7 +23,7 @@ //! let path = "_path_for_rocksdb_storage"; //! { //! let db = DB::open_default(path).unwrap(); -//! db.put(b"my key", b"my value"); +//! db.put(b"my key", b"my value").unwrap(); //! match db.get(b"my key") { //! Ok(Some(value)) => println!("retrieved value {}", value.to_utf8().unwrap()), //! Ok(None) => println!("value not found"),