Skip to content

Commit

Permalink
Update training-slides/src/deconstructing-send-arc-mutex.md
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Pallant <[email protected]>
  • Loading branch information
listochkin and jonathanpallant authored Feb 5, 2024
1 parent 0be0d13 commit 12624c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion training-slides/src/deconstructing-send-arc-mutex.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Two allowable options:

## Why `F: 'static` and `T: 'static`?

* applies to data passed from parent thread to child thread or vise versa
* applies to data passed from parent thread to child thread or vice-versa
* prevents passing references to local variables
* one thread can finish before the other and such references may become invalid
* `+ 'static` lets borrow checker detect these situations at compile time
Expand Down

0 comments on commit 12624c7

Please sign in to comment.