Skip to content

Unclear paragraph in The Book #31927

Closed
Closed
@xrisk

Description

@xrisk

This is how you generally move from ‘crash on error’ to ‘actually handle the returned by parse() is an enum just like Ordering, but in this case, each variant has some data associated with it: Ok is a success, and Err is a failure.

From https://doc.rust-lang.org/book/guessing-game.html#looping (emphasis mine).

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