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