diff options
| author | zeonzip <96481337+zeonzip@users.noreply.github.com> | 2025-06-13 12:24:09 +0200 |
|---|---|---|
| committer | zeonzip <96481337+zeonzip@users.noreply.github.com> | 2025-06-13 12:24:09 +0200 |
| commit | 278edc0b962cf03d5eef214063d720279e72953a (patch) | |
| tree | 13d3972dc63866265f959d0520dd8bd65ddbf1e5 | |
| parent | cb60c8887cf7554e9ad258a6afb1f81cf92f62e4 (diff) | |
Clarify how to find return type of error4
| -rw-r--r-- | exercises/13_error_handling/errors4.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/exercises/13_error_handling/errors4.rs b/exercises/13_error_handling/errors4.rs index ba01e54..144fce7 100644 --- a/exercises/13_error_handling/errors4.rs +++ b/exercises/13_error_handling/errors4.rs @@ -10,6 +10,7 @@ struct PositiveNonzeroInteger(u64); impl PositiveNonzeroInteger { fn new(value: i64) -> Result<Self, CreationError> { // TODO: This function shouldn't always return an `Ok`. + // Read the tests below to clarify what should be returned. Ok(Self(value as u64)) } } |
