From 3accfa2caff77414ada12569066f35d4dec6a5c4 Mon Sep 17 00:00:00 2001 From: Oscar Beaumont Date: Wed, 31 May 2023 00:12:21 +0800 Subject: [PATCH] fix: example has invalid call to `panic` --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 378c90b3..ba28fa2c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -77,7 +77,7 @@ //! opts.optflag("h", "help", "print this help menu"); //! let matches = match opts.parse(&args[1..]) { //! Ok(m) => { m } -//! Err(f) => { panic!(f.to_string()) } +//! Err(f) => { panic!("{}", f.to_string()) } //! }; //! if matches.opt_present("h") { //! print_usage(&program, opts);