mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-12-28 06:49:19 +00:00
Fix bug
This commit is contained in:
parent
d8babf9a53
commit
2e29a61afa
@ -55,7 +55,7 @@ impl PositiveNonzeroInteger {
|
||||
// Don't change this line
|
||||
let x: i64 = s.parse()?;
|
||||
// Don't change this line
|
||||
Self::new(x)?
|
||||
Ok(Self::new(x)?)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -57,7 +57,7 @@ impl PositiveNonzeroInteger {
|
||||
// Don't change this line
|
||||
let x: i64 = s.parse()?;
|
||||
// Don't change this line
|
||||
Self::new(x)?
|
||||
Ok(Self::new(x)?)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user