errors1 solution

This commit is contained in:
mo8it
2024-06-26 15:06:29 +02:00
parent 25b5686dd2
commit 097f3c74ea
3 changed files with 52 additions and 18 deletions
+2 -2
View File
@@ -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`"""