Skip to content

Commit

Permalink
Fix typo in database_api.md (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
varunu28 authored Jan 16, 2024
1 parent 54c1619 commit 22435b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdbook/src/chapter_2/database_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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::<i32>("foo", txn1).await.unwrap();
let value = db.read::<String>("foo", txn1).await.unwrap();
if value == "bar" {
db.write("baz", 20, txn1).await.unwrap();
}
Expand Down

0 comments on commit 22435b1

Please sign in to comment.