From d9df16bf61b2b20899c2ffeb9ea406a481f572c6 Mon Sep 17 00:00:00 2001 From: Toby Scrace Date: Tue, 3 Nov 2015 11:46:05 +0000 Subject: [PATCH] Fix #29533 This replaces usage of the (missing) `fatal!` macro with `panic!`. --- src/doc/trpl/error-handling.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/trpl/error-handling.md b/src/doc/trpl/error-handling.md index 56dfa17b4e3f2..b74aaef927d88 100644 --- a/src/doc/trpl/error-handling.md +++ b/src/doc/trpl/error-handling.md @@ -2074,7 +2074,7 @@ tweak the case analysis in `main`: ```rust,ignore match search(&args.arg_data_path, &args.arg_city) { Err(CliError::NotFound) if args.flag_quiet => process::exit(1), - Err(err) => fatal!("{}", err), + Err(err) => panic!("{}", err), Ok(pops) => for pop in pops { println!("{}, {}: {:?}", pop.city, pop.country, pop.count); }