Skip to content

Commit

Permalink
Fix docs for 'db.get_partition_idx()' usage
Browse files Browse the repository at this point in the history
  • Loading branch information
vponomaryov committed Oct 29, 2024
1 parent a64cf9a commit 3c93370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ Then, in the target functions we can reuse it like following:
```
pub async fn insert(db, i) {
let idx = i % ROW_COUNT + OFFSET;
let partition_idx = db.get_partition_idx("foo", idx).await? + OFFSET;
let partition_idx = db.get_partition_idx("foo", idx).await + OFFSET;
...
}
```
Expand Down

0 comments on commit 3c93370

Please sign in to comment.