diff options
Diffstat (limited to 'docs/pages/other/features.md')
| -rw-r--r-- | docs/pages/other/features.md | 5 |
1 files changed, 2 insertions, 3 deletions
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<ThisProgram>) { program.global_flag(["--no-error"], |program| { - program.stdout_setting.error_output = false; + program.stdout_setting.error_output = ErrorOutput::Hide; }); } ``` |
