From 6edaa76d67ab1ff211c7cc9cd179ffbefe93a04f Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 29 May 2026 17:13:36 +0800 Subject: Rename error types with consistent naming convention --- mingling/src/example_docs.rs | 6 +++--- mingling/src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'mingling/src') diff --git a/mingling/src/example_docs.rs b/mingling/src/example_docs.rs index 5b889ba..b665485 100644 --- a/mingling/src/example_docs.rs +++ b/mingling/src/example_docs.rs @@ -1029,7 +1029,7 @@ pub mod example_enum_tag {} /// } /// /// #[renderer] -/// fn render_dispatcher_not_found(err: DispatcherNotFound) { +/// fn render_dispatcher_not_found(err: ErrorDispatcherNotFound) { /// // Prompt when command is not found, showing the input command /// r_println!("Command not found: \"{}\"", err.inner.join(" ")); /// } @@ -1658,7 +1658,7 @@ pub mod example_panic_unwind {} /// /// // Handle dispatcher not found event /// #[renderer] -/// fn dispatcher_not_found(prev: DispatcherNotFound) { +/// fn dispatcher_not_found(prev: ErrorDispatcherNotFound) { /// r_println!("Command not found: \"{}\"", prev.join(", ")) /// } /// @@ -1918,7 +1918,7 @@ pub mod example_setup {} /// } /// /// #[renderer] -/// fn render_dispatcher_not_found(err: DispatcherNotFound) { +/// fn render_dispatcher_not_found(err: ErrorDispatcherNotFound) { /// r_println!("Command not found: \"{}\"", err.inner.join(" ")); /// } /// diff --git a/mingling/src/lib.rs b/mingling/src/lib.rs index fee25bc..83fd64e 100644 --- a/mingling/src/lib.rs +++ b/mingling/src/lib.rs @@ -38,7 +38,7 @@ //! } //! //! #[renderer] -//! fn render_dispatcher_not_found(err: DispatcherNotFound) { +//! fn render_dispatcher_not_found(err: ErrorDispatcherNotFound) { //! if err.len() > 0 { //! r_println!("Command not found: [{}]", err.join(" ")); //! } -- cgit