From 608df9e5009f18f932239cda07d3587c3bb246ef Mon Sep 17 00:00:00 2001 From: WaterWhisperer Date: Sat, 16 May 2026 13:58:36 +0800 Subject: [PATCH] Fix normalize_doc_attributes configuration docs --- Configurations.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Configurations.md b/Configurations.md index 5d8704ed779..52b1ffcb765 100644 --- a/Configurations.md +++ b/Configurations.md @@ -2142,9 +2142,9 @@ Convert `#![doc]` and `#[doc]` attributes to `//!` and `///` doc comments. #### `false` (default): ```rust -#![doc = "Example documentation"] +#![doc = " Example documentation"] -#[doc = "Example item documentation"] +#[doc = " Example item documentation"] pub enum Bar {} /// Example item documentation @@ -2156,6 +2156,9 @@ pub enum Foo {} ```rust //! Example documentation +/// Example item documentation +pub enum Bar {} + /// Example item documentation pub enum Foo {} ```