Merge pull request #1718 from matthewjnield/main
chore(errors): fix grammar typo and wording in errors exercises
This commit is contained in:
commit
54c0ac1f91
@ -3,7 +3,7 @@
|
|||||||
// Say we're writing a game where you can buy items with tokens. All items cost
|
// Say we're writing a game where you can buy items with tokens. All items cost
|
||||||
// 5 tokens, and whenever you purchase items there is a processing fee of 1
|
// 5 tokens, and whenever you purchase items there is a processing fee of 1
|
||||||
// token. A player of the game will type in how many items they want to buy, and
|
// token. A player of the game will type in how many items they want to buy, and
|
||||||
// the `total_cost` function will calculate the total cost of the tokens. Since
|
// the `total_cost` function will calculate the total cost of the items. Since
|
||||||
// the player typed in the quantity, though, we get it as a string-- and they
|
// the player typed in the quantity, though, we get it as a string-- and they
|
||||||
// might have typed anything, not just numbers!
|
// might have typed anything, not just numbers!
|
||||||
//
|
//
|
||||||
|
@ -658,7 +658,7 @@ name = "errors1"
|
|||||||
path = "exercises/error_handling/errors1.rs"
|
path = "exercises/error_handling/errors1.rs"
|
||||||
mode = "test"
|
mode = "test"
|
||||||
hint = """
|
hint = """
|
||||||
`Ok` and `Err` are one of the variants of `Result`, so what the tests are saying
|
`Ok` and `Err` are the two variants of `Result`, so what the tests are saying
|
||||||
is that `generate_nametag_text` should return a `Result` instead of an `Option`.
|
is that `generate_nametag_text` should return a `Result` instead of an `Option`.
|
||||||
|
|
||||||
To make this change, you'll need to:
|
To make this change, you'll need to:
|
||||||
|
Loading…
Reference in New Issue
Block a user