Skip to content

Commit

Permalink
Merge pull request rust-lang#1607 from softarn/main
Browse files Browse the repository at this point in the history
chore(errors4): improved comment
  • Loading branch information
shadows-withal authored Aug 1, 2023
2 parents 4592b4c + be8d1df commit 4d26307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/error_handling/errors4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ enum CreationError {

impl PositiveNonzeroInteger {
fn new(value: i64) -> Result<PositiveNonzeroInteger, CreationError> {
// Hmm...? Why is this only returning an Ok value?
// Hmm... Why is this always returning an Ok value?
Ok(PositiveNonzeroInteger(value as u64))
}
}
Expand Down

0 comments on commit 4d26307

Please sign in to comment.