We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb60c88 commit 278edc0Copy full SHA for 278edc0
exercises/13_error_handling/errors4.rs
@@ -10,6 +10,7 @@ struct PositiveNonzeroInteger(u64);
10
impl PositiveNonzeroInteger {
11
fn new(value: i64) -> Result<Self, CreationError> {
12
// TODO: This function shouldn't always return an `Ok`.
13
+ // Read the tests below to clarify what should be returned.
14
Ok(Self(value as u64))
15
}
16
0 commit comments