print the unexpected character

This commit is contained in:
Tamir Duberstein 2015-11-02 11:19:27 -05:00
parent 008f9d5822
commit c21ffc27b1

View File

@ -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)
}
}
}