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, }, }