From 0e3074cfe1937403567edb14665aedcf2f1eb473 Mon Sep 17 00:00:00 2001 From: yuwk <1729065730@qq.com> Date: Thu, 15 Oct 2026 02:49:37 +0800 Subject: [PATCH] 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. --- src/wrapping.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wrapping.rs b/src/wrapping.rs index 3a5fa457..7b24b558 100644 --- a/src/wrapping.rs +++ b/src/wrapping.rs @@ -2,7 +2,7 @@ pub enum WrappingMode { Character, 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), }