Clarify how to find return type of error4

This commit is contained in:
zeonzip
2025-06-13 12:24:09 +02:00
parent cb60c8887c
commit 278edc0b96
+1
View File
@@ -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))
}
}