rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
98.63k stars 12.74k forks source link

Small errors in stable dining philosophers example #25430

Closed Manishearth closed 9 years ago

Manishearth commented 9 years ago

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 commented 9 years ago

'Multi-threading' already fixed by #25360

killercup commented 9 years ago

@parir wins this one! :)