diff options
| author | liv <mokou@fastmail.com> | 2023-10-16 11:27:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-16 11:27:07 +0200 |
| commit | 54c0ac1f91fd1c8b9ab02e5322a7acbaf62a6092 (patch) | |
| tree | 88a9a039e60906271e1a02dde622dcbbcdd7c0f7 | |
| parent | b97c88f202b9b9c6f635748198203f2dd5b5cfbe (diff) | |
| parent | 642aac6f43f49407308f18306399a910cf8fe6f6 (diff) | |
Merge pull request #1718 from matthewjnield/main
chore(errors): fix grammar typo and wording in errors exercises
| -rw-r--r-- | exercises/error_handling/errors2.rs | 2 | ||||
| -rw-r--r-- | info.toml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/exercises/error_handling/errors2.rs b/exercises/error_handling/errors2.rs index d4a5477..631fe67 100644 --- a/exercises/error_handling/errors2.rs +++ b/exercises/error_handling/errors2.rs @@ -3,7 +3,7 @@ // 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 // 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 // might have typed anything, not just numbers! // @@ -658,7 +658,7 @@ name = "errors1" path = "exercises/error_handling/errors1.rs" mode = "test" 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`. To make this change, you'll need to: |
