aboutsummaryrefslogtreecommitdiff
path: root/mingling
diff options
context:
space:
mode:
Diffstat (limited to 'mingling')
-rw-r--r--mingling/src/example_docs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mingling/src/example_docs.rs b/mingling/src/example_docs.rs
index 6732050..61d2e3f 100644
--- a/mingling/src/example_docs.rs
+++ b/mingling/src/example_docs.rs
@@ -2472,6 +2472,7 @@ pub mod example_pack_err {}
///
/// Source code (./src/main.rs)
/// ```ignore
+/// use mingling::PanicSilence;
/// use mingling::{hook::ProgramHook, prelude::*};
/// use std::io::Write;
///
@@ -2484,7 +2485,7 @@ pub mod example_pack_err {}
///
/// // --------- IMPORTANT ---------
/// // Enable silence_panic to suppress automatic Panic output
-/// program.stdout_setting.silence_panic = true;
+/// program.stdout_setting.silence_panic = PanicSilence::Silence;
///
/// // Define a hook to output &ProgramPanic when a Panic occurs
/// program.with_hook(
@@ -2509,7 +2510,6 @@ pub mod example_pack_err {}
/// }
///
/// /// Renders the message when no panic occurs.
-/// /// Renders the message when no panic occurs.
/// #[renderer]
/// pub fn render(_: NotPanic) -> RenderResult {
/// let mut render_result = RenderResult::new();