Skip to content

Commit 57770d9

Browse files
committed
Fix typo in AdtDef comment
1 parent a62d00b commit 57770d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/ty/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1948,7 +1948,7 @@ pub struct FieldDef {
19481948
pub struct AdtDef {
19491949
/// `DefId` of the struct, enum or union item.
19501950
pub did: DefId,
1951-
/// Variants of the ADT. If this is a struct or enum, then there will be a single variant.
1951+
/// Variants of the ADT. If this is a struct or union, then there will be a single variant.
19521952
pub variants: IndexVec<self::layout::VariantIdx, VariantDef>,
19531953
/// Flags of the ADT (e.g. is this a struct? is this non-exhaustive?)
19541954
flags: AdtFlags,

0 commit comments

Comments
 (0)