Skip to content

Small errors in stable dining philosophers example #25430

Closed
@Manishearth

Description

@Manishearth

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions