aboutsummaryrefslogtreecommitdiff
path: root/mingling
diff options
context:
space:
mode:
authorWeicao-CatilGrass <1992414357@qq.com>2026-05-22 09:56:04 +0800
committerWeicao-CatilGrass <1992414357@qq.com>2026-05-22 09:56:04 +0800
commite843405ecfee06ea158fb0070d4c70c2f228c82c (patch)
treeb3fb888dd00797a9880d76b704fd8564a27b7799 /mingling
parent7adbe2715285d7baedfb91f5e81f5ea64f7d1a5a (diff)
Refactor renderer to use injected resources directly
Diffstat (limited to 'mingling')
-rw-r--r--mingling/src/example_docs.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/mingling/src/example_docs.rs b/mingling/src/example_docs.rs
index 598e345..bb65280 100644
--- a/mingling/src/example_docs.rs
+++ b/mingling/src/example_docs.rs
@@ -368,10 +368,7 @@ pub mod example_dispatch_tree {}
/// main.rs
/// ```ignore
/// use mingling::prelude::*;
-/// use mingling::{
-/// res::{ExitCode, exit_code},
-/// setup::ExitCodeSetup,
-/// };
+/// use mingling::{res::ExitCode, setup::ExitCodeSetup};
///
/// fn main() {
/// let mut program = ThisProgram::new();
@@ -390,9 +387,8 @@ pub mod example_dispatch_tree {}
/// }
///
/// #[renderer]
-/// fn render_error(_prev: ResultError) {
-/// let exit_code = exit_code::<ThisProgram>();
-/// r_println!("Exit with exit code: {}", exit_code);
+/// fn render_error(_prev: ResultError, ec: &ExitCode) {
+/// r_println!("Exit with exit code: {}", ec.exit_code);
/// }
///
/// gen_program!();