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); } ```