Introduce a panic test bug

This commit is contained in:
Manuel Thalmann 2025-03-02 23:53:39 +01:00
parent 40d69d9539
commit d12a578977

View file

@ -8,7 +8,7 @@ pub struct Guess {
impl Guess {
pub fn new(value: i32) -> Guess {
if value < 1 || value > 100 {
if value < 1 {
panic!("Guess value must be between 1 and 100, got {value}.");
}