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

Fixed errors and improved readability #2968

Merged
merged 8 commits into from
Dec 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions nostarch/chapter02.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ on which variant an enum value is when the conditional is evaluated.
Chapter 6 will cover enums in more detail. The purpose of these `Result` types
is to encode error-handling information.

`Result`’s variants are `Ok` or `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
`Result`’s variants are `Ok` and `Err`. The `Ok` variant indicates the
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