Change error
This commit is contained in:
parent
fccaf317d8
commit
b645f60d35
|
@ -38,7 +38,7 @@ fn ticket_from_str(s: &str) -> Result<Ticket, anyhow::Error> {
|
|||
|| r[3] > 90
|
||||
|| r[4] > 90
|
||||
{
|
||||
return Err(anyhow!("lotto number too high"));
|
||||
return Err(anyhow!("lotto number out of bounds"));
|
||||
}
|
||||
|
||||
Ok(r)
|
||||
|
|
Loading…
Reference in a new issue