From 43e3fd19443dbce57b8594693bed39a4b639aca4 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sun, 8 Mar 2026 15:41:37 +0000 Subject: [PATCH] rustdoc-json: fix incorrect documentation for VariantKind::Struct --- src/rustdoc-json-types/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rustdoc-json-types/lib.rs b/src/rustdoc-json-types/lib.rs index 3c696f506dd8d..54fb833f40b64 100644 --- a/src/rustdoc-json-types/lib.rs +++ b/src/rustdoc-json-types/lib.rs @@ -856,10 +856,10 @@ pub enum VariantKind { /// } /// ``` Struct { - /// The list of variants in the enum. - /// All of the corresponding [`Item`]s are of kind [`ItemEnum::Variant`]. + /// The list of named fields in the variant. + /// All of the corresponding [`Item`]s are of kind [`ItemEnum::StructField`]. fields: Vec, - /// Whether any variants have been removed from the result, due to being private or hidden. + /// Whether any fields have been removed from the result, due to being private or hidden. has_stripped_fields: bool, }, }