From 2588933ebc500f439ebef075fef1064b0c5f0bcb Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Wed, 13 May 2026 07:34:45 +0800 Subject: Add convenient `update_exit_code` and `exit_code` helper functions --- mingling/src/example_docs.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mingling/src/example_docs.rs') diff --git a/mingling/src/example_docs.rs b/mingling/src/example_docs.rs index 09e84a8..1669344 100644 --- a/mingling/src/example_docs.rs +++ b/mingling/src/example_docs.rs @@ -371,9 +371,8 @@ pub mod example_dispatch_tree {} /// ```ignore /// use mingling::{ /// macros::{chain, dispatcher, gen_program, pack, r_println, renderer}, -/// res::ExitCode, +/// res::update_exit_code, /// setup::ExitCodeSetup, -/// this, /// }; /// /// fn main() { @@ -388,7 +387,7 @@ pub mod example_dispatch_tree {} /// /// #[chain] /// fn handle_error_entry(_prev: ErrorEntry) -> NextProcess { -/// this::().modify_res(|r: &mut ExitCode| r.exit_code = 1); +/// update_exit_code::(1); /// return ResultError::default(); /// } /// -- cgit