Document WrappingMode::NoWrapping's bool payload with a doc comment

The explanation of what the payload means used //, so rustdoc dropped it
from the public WrappingMode page. WrappingMode is re-exported from
lib.rs, so the variant is documented like the neighbouring enums.
This commit is contained in:
yuwk committed 2026-10-15 02:49:37 +08:00
1 parent 4d916905d1
commit 0e3074cfe1
1 file changed
+1 -1
+1 -1
View File
@@ -2,7 +2,7 @@
pub enum WrappingMode { pub enum WrappingMode {
Character, Character,
Word, Word,
// The bool specifies whether wrapping has been explicitly disabled by the user via --wrap=never /// The bool specifies whether wrapping has been explicitly disabled by the user via --wrap=never
NoWrapping(bool), NoWrapping(bool),
} }