chore: update errors1 comments and hint

This commit is contained in:
mokou
2022-04-14 10:32:43 +02:00
parent c39eb3fe55
commit 76a36dd385
2 changed files with 4 additions and 10 deletions

View File

@@ -490,7 +490,7 @@ name = "errors1"
path = "exercises/error_handling/errors1.rs"
mode = "test"
hint = """
`Err` is one of the variants of `Result`, so what the 2nd test is saying
`Ok` and `Err` are one of the variants of `Result`, so what the tests are saying
is that `generate_nametag_text` should return a `Result` instead of an
`Option`.
@@ -500,9 +500,7 @@ To make this change, you'll need to:
- change the body of the function to return `Ok(stuff)` where it currently
returns `Some(stuff)`
- change the body of the function to return `Err(error message)` where it
currently returns `None`
- change the first test to expect `Ok(stuff)` where it currently expects
`Some(stuff)`."""
currently returns `None`"""
[[exercises]]
name = "errors2"