mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-03 00:43:29 +02:00
errors1 solution
This commit is contained in:
@@ -647,8 +647,8 @@ is that `generate_nametag_text` should return a `Result` instead of an `Option`.
|
||||
To make this change, you'll need to:
|
||||
- update the return type in the function signature to be a `Result<String,
|
||||
String>` that could be the variants `Ok(String)` and `Err(String)`
|
||||
- change the body of the function to return `Ok(stuff)` where it currently
|
||||
returns `Some(stuff)`
|
||||
- change the body of the function to return `Ok(…)` where it currently
|
||||
returns `Some(…)`
|
||||
- change the body of the function to return `Err(error message)` where it
|
||||
currently returns `None`"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user