diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-29 17:13:36 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-29 17:13:36 +0800 |
| commit | 6edaa76d67ab1ff211c7cc9cd179ffbefe93a04f (patch) | |
| tree | 02d5b5f68b3d443baccbfc0ed3fc7fa16a3dd9a4 /mingling | |
| parent | 05826d67f1f9166a6620475ffdeaa488917befd8 (diff) | |
Rename error types with consistent naming convention
Diffstat (limited to 'mingling')
| -rw-r--r-- | mingling/src/example_docs.rs | 6 | ||||
| -rw-r--r-- | mingling/src/lib.rs | 2 |
2 files changed, 4 insertions, 4 deletions
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(" ")); //! } |
