Skip to content

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

Open
denispeplin wants to merge 1 commit into
cognitive-engineering-lab:mainfrom
denispeplin:patch-1
Open

Update code snippet for std::thread::spawn#29
denispeplin wants to merge 1 commit into
cognitive-engineering-lab:mainfrom
denispeplin:patch-1

Conversation

@denispeplin
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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