We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a62d00b commit 57770d9Copy full SHA for 57770d9
src/librustc/ty/mod.rs
@@ -1948,7 +1948,7 @@ pub struct FieldDef {
1948
pub struct AdtDef {
1949
/// `DefId` of the struct, enum or union item.
1950
pub did: DefId,
1951
- /// Variants of the ADT. If this is a struct or enum, then there will be a single variant.
+ /// Variants of the ADT. If this is a struct or union, then there will be a single variant.
1952
pub variants: IndexVec<self::layout::VariantIdx, VariantDef>,
1953
/// Flags of the ADT (e.g. is this a struct? is this non-exhaustive?)
1954
flags: AdtFlags,
0 commit comments