Skip to content

Commit 6765a0b

Browse files
authored
Merge pull request #2255 from zeonzip/clarify_errors_4_return
Clarify how to find return type of error4
2 parents 436c95f + 278edc0 commit 6765a0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

exercises/13_error_handling/errors4.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ struct PositiveNonzeroInteger(u64);
1010
impl PositiveNonzeroInteger {
1111
fn new(value: i64) -> Result<Self, CreationError> {
1212
// TODO: This function shouldn't always return an `Ok`.
13+
// Read the tests below to clarify what should be returned.
1314
Ok(Self(value as u64))
1415
}
1516
}

0 commit comments

Comments
 (0)