aboutsummaryrefslogtreecommitdiff
path: root/mingling/src/example_docs.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-18 02:30:09 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-18 02:30:09 +0800
commitcd9cad77542e1909f9600f8a2e2754cc4cc4507a (patch)
treed77eb9838a92b4b71de6252e6d892056123cfc1a /mingling/src/example_docs.rs
parente70ffc81399f0f90f71fd269f4ba2ee90ca20c4a (diff)
chore!: simplify ExitCodeSetup to non-generic unit struct
Diffstat (limited to 'mingling/src/example_docs.rs')
-rw-r--r--mingling/src/example_docs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mingling/src/example_docs.rs b/mingling/src/example_docs.rs
index c9955b5..055615d 100644
--- a/mingling/src/example_docs.rs
+++ b/mingling/src/example_docs.rs
@@ -1318,7 +1318,7 @@ pub mod example_error_handling {}
///
/// // --------- IMPORTANT ---------
/// // Register `ExitCodeSetup` for the program to enable exit codes
-/// program.with_setup(ExitCodeSetup::default());
+/// program.with_setup(ExitCodeSetup);
/// // --------- IMPORTANT ---------
///
/// program.exec_and_exit();