diff options
| author | mokou <mokou@fastmail.com> | 2022-07-14 18:02:33 +0200 |
|---|---|---|
| committer | mokou <mokou@fastmail.com> | 2022-07-14 18:02:33 +0200 |
| commit | c34e2adcbb261f71fbd013d61257457dd84bd849 (patch) | |
| tree | e8552f6f6419a26fb4d77d7be12f153023666418 /exercises/error_handling/errors4.rs | |
| parent | 5e1ca4b99577578a1c92d71eeba49d88f60dcedc (diff) | |
feat(errors): Improve comments and hints
Diffstat (limited to 'exercises/error_handling/errors4.rs')
| -rw-r--r-- | exercises/error_handling/errors4.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/exercises/error_handling/errors4.rs b/exercises/error_handling/errors4.rs index 0685c37..0efe8cc 100644 --- a/exercises/error_handling/errors4.rs +++ b/exercises/error_handling/errors4.rs @@ -1,5 +1,5 @@ // errors4.rs -// Make this test pass! Execute `rustlings hint errors4` for hints :) +// Execute `rustlings hint errors4` or use the `hint` watch subcommand for a hint. // I AM NOT DONE @@ -14,6 +14,7 @@ enum CreationError { impl PositiveNonzeroInteger { fn new(value: i64) -> Result<PositiveNonzeroInteger, CreationError> { + // Hmm...? Why is this only returning an Ok value? Ok(PositiveNonzeroInteger(value as u64)) } } |
