-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Documentation for LocalKey could be better worded #39841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Any contribution is very welcome. Don't hesitate to give it a try! :) |
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Feb 17, 2017
…illaumeGomez Fix wording in LocalKey documentation Fixes rust-lang#39841 r? @GuillaumeGomez
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Feb 17, 2017
…illaumeGomez Fix wording in LocalKey documentation Fixes rust-lang#39841 r? @GuillaumeGomez
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
Feb 17, 2017
…illaumeGomez Fix wording in LocalKey documentation Fixes rust-lang#39841 r? @GuillaumeGomez
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
Feb 18, 2017
…illaumeGomez Fix wording in LocalKey documentation Fixes rust-lang#39841 r? @GuillaumeGomez
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source: https://doc.rust-lang.org/std/thread/struct.LocalKey.html
"Initialization is dynamically performed on the first call to with() within a thread, and values support destructors which will be run when a thread exits."
It's unclear what's going on with destructors in this sentence.
The truth is: values that implement Drop will probably (on a best-effort basis) get dropped when a thread exits.
The text was updated successfully, but these errors were encountered: