print the unexpected character
This commit is contained in:
parent
008f9d5822
commit
c21ffc27b1
@ -41,7 +41,7 @@ fn main(){
|
||||
match line.chars().next().unwrap() {
|
||||
'1' => assert_eq!(line, "11111"),
|
||||
'2' => assert_eq!(line, "22222"),
|
||||
_ => panic!("Unexpected character")
|
||||
chr => panic!("unexpected character {:?}", chr)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user