Skip to content

Commit

Permalink
docs: Fix set_on_upgrade_needed example
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Dec 27, 2021
1 parent 28fe40d commit 376ad64
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "indexed_db_futures"
version = "0.2.1"
version = "0.2.2"
authors = ["Arturas Molcanovas <[email protected]>"]
edition = "2018"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
//! pub async fn example() -> Result<(), DomException> {
//! // Open my_db v1
//! let mut db_req: OpenDbRequest = IdbDatabase::open_u32("my_db", 1)?;
//! db_req.set_on_upgrade_needed(Some(|evt: IdbVersionChangeEvent| -> Result<(), JsValue> {
//! db_req.set_on_upgrade_needed(Some(|evt: &IdbVersionChangeEvent| -> Result<(), JsValue> {
//! // Check if the object store exists; create it if it doesn't
//! if let None = evt.db().object_store_names().find(|n| n == "my_store") {
//! evt.db().create_object_store("my_store")?;
Expand Down

0 comments on commit 376ad64

Please sign in to comment.