about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorToby Scrace <toby.scrace@gmail.com>2015-11-03 11:46:05 +0000
committerToby Scrace <toby.scrace@gmail.com>2015-11-03 11:46:05 +0000
commitd9df16bf61b2b20899c2ffeb9ea406a481f572c6 (patch)
tree925f99d84dd9256bd5e783275235e3e312e009a9 /src
parenteacd35984bbd98d514dd1d9af54b66d9de089ec7 (diff)
downloadrust-d9df16bf61b2b20899c2ffeb9ea406a481f572c6.tar.gz
rust-d9df16bf61b2b20899c2ffeb9ea406a481f572c6.zip
Fix #29533
This replaces usage of the (missing) `fatal!` macro with `panic!`.
Diffstat (limited to 'src')
-rw-r--r--src/doc/trpl/error-handling.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/error-handling.md b/src/doc/trpl/error-handling.md
index 56dfa17b4e3..b74aaef927d 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);
     }