From 3c9337027fd7742749af65c379d5652b2e16a503 Mon Sep 17 00:00:00 2001 From: Valerii Ponomarov Date: Tue, 29 Oct 2024 17:44:44 +0200 Subject: [PATCH] Fix docs for 'db.get_partition_idx()' usage --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a00b4bb..d45c53c 100644 --- a/README.md +++ b/README.md @@ -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; ... } ```