aboutsummaryrefslogtreecommitdiff
path: root/mingling/src/example_docs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mingling/src/example_docs.rs')
-rw-r--r--mingling/src/example_docs.rs5
1 files changed, 2 insertions, 3 deletions
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::<ThisProgram>().modify_res(|r: &mut ExitCode| r.exit_code = 1);
+/// update_exit_code::<ThisProgram>(1);
/// return ResultError::default();
/// }
///