diff --git a/listings/ch09-error-handling/listing-09-05/src/main.rs b/listings/ch09-error-handling/listing-09-05/src/main.rs index e0bc55c3f1..20f470ba20 100644 --- a/listings/ch09-error-handling/listing-09-05/src/main.rs +++ b/listings/ch09-error-handling/listing-09-05/src/main.rs @@ -11,8 +11,8 @@ fn main() { Ok(fc) => fc, Err(e) => panic!("Problem creating the file: {e:?}"), }, - other_error => { - panic!("Problem opening the file: {other_error:?}"); + _ => { + panic!("Problem opening the file: {error:?}"); } }, };