Skip to content

Commit 54c0ac1

Browse files
authored
Merge pull request #1718 from matthewjnield/main
chore(errors): fix grammar typo and wording in errors exercises
2 parents b97c88f + 642aac6 commit 54c0ac1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

exercises/error_handling/errors2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Say we're writing a game where you can buy items with tokens. All items cost
44
// 5 tokens, and whenever you purchase items there is a processing fee of 1
55
// token. A player of the game will type in how many items they want to buy, and
6-
// the `total_cost` function will calculate the total cost of the tokens. Since
6+
// the `total_cost` function will calculate the total cost of the items. Since
77
// the player typed in the quantity, though, we get it as a string-- and they
88
// might have typed anything, not just numbers!
99
//

info.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ name = "errors1"
658658
path = "exercises/error_handling/errors1.rs"
659659
mode = "test"
660660
hint = """
661-
`Ok` and `Err` are one of the variants of `Result`, so what the tests are saying
661+
`Ok` and `Err` are the two variants of `Result`, so what the tests are saying
662662
is that `generate_nametag_text` should return a `Result` instead of an `Option`.
663663
664664
To make this change, you'll need to:

0 commit comments

Comments
 (0)