diff --git a/mdbook/src/chapter_2/database_api.md b/mdbook/src/chapter_2/database_api.md index 1f85e25..79b4477 100644 --- a/mdbook/src/chapter_2/database_api.md +++ b/mdbook/src/chapter_2/database_api.md @@ -16,7 +16,7 @@ Here is an example of using the database: ```rust let db = DB::new("./tmp/data", Timestamp::new(10)) let txn1 = db.begin_txn().await; -let value = db.read::("foo", txn1).await.unwrap(); +let value = db.read::("foo", txn1).await.unwrap(); if value == "bar" { db.write("baz", 20, txn1).await.unwrap(); }