Skip to content
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

Small errors in stable dining philosophers example #25430

Closed
Manishearth opened this issue May 15, 2015 · 2 comments
Closed

Small errors in stable dining philosophers example #25430

Manishearth opened this issue May 15, 2015 · 2 comments

Comments

@Manishearth
Copy link
Member

http://doc.rust-lang.org/stable/book/dining-philosophers.html

I can't fix these myself until later, anyone else want to do it? cc @steveklabnik @killercup @geofft

Here, we make a [struct][struct] to represent a philosopher. For now, a name is all we need. We choose the [String][string] type for the name, rather than &str.

The links here are broken

While this is only five lines, they’re a dense four. Let’s break it down.

Should be: "While this is only five lines, they’re a dense five. Let’s break it down."

If you run this program, you’ll see that the philosophers eat out of order! We have mult-threading!

  • multi-threading
@killercup
Copy link
Member

'Multi-threading' already fixed by #25360

@killercup
Copy link
Member

@parir wins this one! :)

@bors bors closed this as completed in 94ecc37 May 15, 2015
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

No branches or pull requests

2 participants