Skip to content

Commit

Permalink
Merge pull request #4167 from rust-lang/joeljosedev/main
Browse files Browse the repository at this point in the history
Clarify/improve readability in Ch. 02 discussion of `Result` variants
  • Loading branch information
chriskrycho authored Dec 16, 2024
2 parents da7603e + cd5ac75 commit 3c000b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ch02-00-guessing-game-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ possible state a _variant_.
of these `Result` types is to encode error-handling information.

`Result`’s variants are `Ok` and `Err`. The `Ok` variant indicates the
operation was successful, and inside `Ok` is the successfully generated value.
The `Err` variant means the operation failed, and `Err` contains information
operation was successful, and it contains the successfully generated value.
The `Err` variant means the operation failed, and it contains information
about how or why the operation failed.

Values of the `Result` type, like values of any type, have methods defined on
Expand Down

0 comments on commit 3c000b4

Please sign in to comment.