aboutsummaryrefslogtreecommitdiff
path: root/docs/_zh_CN/pages/other
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-10 16:25:25 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-10 16:25:25 +0800
commit1be60c990f27cd9006fa3db8aa5bd623c33840e8 (patch)
tree06e7093e346493ac9b32067a4cc86ce40da63df1 /docs/_zh_CN/pages/other
parent1c065ed5ec1c1036d185dea91b2f0394d9ddd111 (diff)
docs: update verbosity and error output API in examples
Diffstat (limited to 'docs/_zh_CN/pages/other')
-rw-r--r--docs/_zh_CN/pages/other/features.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/_zh_CN/pages/other/features.md b/docs/_zh_CN/pages/other/features.md
index 2d65e47..f307e4e 100644
--- a/docs/_zh_CN/pages/other/features.md
+++ b/docs/_zh_CN/pages/other/features.md
@@ -195,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();
@@ -206,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;
});
}
```