From 9c8f5c8d60f3066fec8a1573aa3f5673e0b2ecb8 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 3 Aug 2026 13:36:13 +0800 Subject: chore!: rename ErrorDispatcherNotFound to EntryFallback Rename the internal fallback type and its associated `ProgramCollect` plumbing from `ErrorDispatcherNotFound`/`build_dispatcher_not_found` to `EntryFallback`/`build_entry_fallback`, along with the generated enum variant and pack type. Update all documentation, examples, and tests accordingly. --- GETTING-STARTED.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'GETTING-STARTED.md') diff --git a/GETTING-STARTED.md b/GETTING-STARTED.md index 7d451e0..add49eb 100644 --- a/GETTING-STARTED.md +++ b/GETTING-STARTED.md @@ -117,7 +117,7 @@ use mingling::prelude::*; use std::io::Write; #[renderer] -fn render_dispatcher_not_found(err: ErrorDispatcherNotFound) -> RenderResult { +fn render_entry_fallback(err: EntryFallback) -> RenderResult { let mut result = RenderResult::new(); writeln!(result, "Command not found: [{}]", err.join(" ")).ok(); result @@ -313,7 +313,7 @@ fn render_too_long(len: ErrorNameTooLong) -> RenderResult { Two built-in fallback types are always available: -- `ErrorDispatcherNotFound` — rendered when no dispatcher matches the input +- `EntryFallback` — rendered when no dispatcher matches the input - `ErrorRendererNotFound` — rendered when no renderer is found for a result type --- -- cgit