Skip to content

Commit

Permalink
Fix code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
Vacyyyy committed Jul 31, 2024
1 parent 7944e4c commit 2a3cf1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/docs/state-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async fn main() {

pub async fn do_something_with_state(data: Arc<Mutex<Vec<i32>>>) {
// Mutate the shared variable directly.
VECTOR.lock().await.push(3);
data.lock().await.push(3);
}
```

Expand Down

0 comments on commit 2a3cf1a

Please sign in to comment.