diff options
| author | Mo Bitar <76752051+mo8it@users.noreply.github.com> | 2025-08-21 23:46:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-21 23:46:14 +0200 |
| commit | 6765a0b61a3d75645421ff2a1f7346cda639893f (patch) | |
| tree | 4af8e44aa66ced7f23f1bb172cd798838615304c | |
| parent | 436c95f4cc8cfb19e232edad206a949d14a5320b (diff) | |
| parent | 278edc0b962cf03d5eef214063d720279e72953a (diff) | |
Merge pull request #2255 from zeonzip/clarify_errors_4_return
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)) } } |
