print the unexpected character
This commit is contained in:
parent
008f9d5822
commit
c21ffc27b1
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ fn main(){
|
||||||
match line.chars().next().unwrap() {
|
match line.chars().next().unwrap() {
|
||||||
'1' => assert_eq!(line, "11111"),
|
'1' => assert_eq!(line, "11111"),
|
||||||
'2' => assert_eq!(line, "22222"),
|
'2' => assert_eq!(line, "22222"),
|
||||||
_ => panic!("Unexpected character")
|
chr => panic!("unexpected character {:?}", chr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue