From a56bca503b3de78eae4903566cee1388d4bd67d0 Mon Sep 17 00:00:00 2001 From: yuwk <1729065730@qq.com> Date: Thu, 15 Oct 2026 00:23:49 +0800 Subject: [PATCH] Fix doc comments on four Config fields The use_lessopen, set_terminal_title, strip_ansi and sanitize fields were annotated with // instead of ///, so they were silently missing from the rustdoc output for the public bat::config::Config struct. Every sibling field already uses ///. --- src/config.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config.rs b/src/config.rs index 9f78244e..4b47852a 100644 --- a/src/config.rs +++ b/src/config.rs @@ -98,20 +98,20 @@ pub struct Config<'a> { /// cached assets) are not available, assets from the binary will be used instead. pub use_custom_assets: bool, - // Whether or not to use $LESSOPEN if set + /// Whether or not to use $LESSOPEN if set #[cfg(feature = "lessopen")] pub use_lessopen: bool, - // Whether or not to set terminal title when using a pager + /// Whether or not to set terminal title when using a pager pub set_terminal_title: bool, /// The maximum number of consecutive empty lines to display pub squeeze_lines: Option, - // Whether or not to strip ANSI escape codes from the input + /// Whether or not to strip ANSI escape codes from the input pub strip_ansi: StripAnsiMode, - // Substitute terminal-active and spoofing-relevant bytes; implies strip_ansi. + /// Substitute terminal-active and spoofing-relevant bytes; implies strip_ansi. pub sanitize: StripAnsiMode, /// Whether or not to produce no output when input is empty