Skip to content

Commit 3c000b4

Browse files
authored
Merge pull request #4167 from rust-lang/joeljosedev/main
Clarify/improve readability in Ch. 02 discussion of `Result` variants
2 parents da7603e + cd5ac75 commit 3c000b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/ch02-00-guessing-game-tutorial.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ possible state a _variant_.
238238
of these `Result` types is to encode error-handling information.
239239

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

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

0 commit comments

Comments
 (0)