Skip to content

Update code snippet for std::thread::spawn #29

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

denispeplin
Copy link

The link: https://doc.rust-lang.org/stable/std/thread/fn.spawn.html

I'm not sure why the documentation is not linked from the book, maybe there's a reason for that.

The link: https://doc.rust-lang.org/stable/std/thread/fn.spawn.html
I'm not sure why the documentation is not linked from the book, maybe there's a reason for that.
@denispeplin denispeplin changed the title Update code snipped for std::thread::spawn Update code snippet for std::thread::spawn Feb 21, 2023
@denispeplin
Copy link
Author

It turns out, there is another copy of the same snippet on the same page: https://rust-book.cs.brown.edu/ch20-02-multithreaded.html#creating-space-to-store-the-threads

@willcrichton
Copy link
Collaborator

Thanks for the helpful change! If you can update the other snippet to match, I will merge this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants