We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16c0902 commit a902f7aCopy full SHA for a902f7a
src/librustc/ty/mod.rs
@@ -1949,7 +1949,7 @@ pub struct FieldDef {
1949
pub struct AdtDef {
1950
/// `DefId` of the struct, enum or union item.
1951
pub did: DefId,
1952
- /// 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.
1953
pub variants: IndexVec<self::layout::VariantIdx, VariantDef>,
1954
/// Flags of the ADT (e.g. is this a struct? is this non-exhaustive?)
1955
flags: AdtFlags,
0 commit comments