From 2a3cf1a25d98b1b1b34078599b26f58f7459a22f Mon Sep 17 00:00:00 2001 From: Vacyyyy Date: Wed, 31 Jul 2024 19:43:57 +0200 Subject: [PATCH] Fix code snippet --- documentation/docs/state-management.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/state-management.md b/documentation/docs/state-management.md index 05636922..1b602870 100644 --- a/documentation/docs/state-management.md +++ b/documentation/docs/state-management.md @@ -21,7 +21,7 @@ async fn main() { pub async fn do_something_with_state(data: Arc>>) { // Mutate the shared variable directly. - VECTOR.lock().await.push(3); + data.lock().await.push(3); } ```