Skip to content

Commit

Permalink
Merge pull request #407 from Vacyyyy/feature/fix-docs
Browse files Browse the repository at this point in the history
Fix code snippet
  • Loading branch information
temeddix authored Aug 2, 2024
2 parents 7944e4c + 2a3cf1a commit 5f9b00c
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 5f9b00c

Please sign in to comment.