Skip to content

Commit 278edc0

Browse files
committed
Clarify how to find return type of error4
1 parent cb60c88 commit 278edc0

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)