From 1be60c990f27cd9006fa3db8aa5bd623c33840e8 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 10 Aug 2026 16:25:25 +0800 Subject: docs: update verbosity and error output API in examples --- docs/pages/other/features.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'docs/pages/other') diff --git a/docs/pages/other/features.md b/docs/pages/other/features.md index 55b6cc8..ac9d5db 100644 --- a/docs/pages/other/features.md +++ b/docs/pages/other/features.md @@ -63,7 +63,6 @@ features = ["build_full"] # Feature Details - ## Feature `all_serde_fmt` **Description:** @@ -196,7 +195,7 @@ fn handle_state_prev1(_p: StatePrev1) -> Next { ```rust // Features: ["extras"] -use mingling::{macros::program_setup, Program}; +use mingling::{ErrorOutput, macros::program_setup, Program}; fn main() { let mut program = ThisProgram::new(); @@ -207,7 +206,7 @@ fn main() { #[program_setup] fn no_error_setup(program: &mut Program) { program.global_flag(["--no-error"], |program| { - program.stdout_setting.error_output = false; + program.stdout_setting.error_output = ErrorOutput::Hide; }); } ``` -- cgit