]> git.lizzy.rs Git - rust.git/commitdiff
fix a comment
authorRalf Jung <post@ralfj.de>
Wed, 7 Aug 2019 06:43:42 +0000 (08:43 +0200)
committerRalf Jung <post@ralfj.de>
Sun, 11 Aug 2019 10:04:49 +0000 (12:04 +0200)
src/librustc/ty/mod.rs

index a10578b0a43908aae1f4742855c77b22679348e3..da7f894e84d0aad492cfd156fec46606a926a555 100644 (file)
@@ -1949,7 +1949,7 @@ pub struct FieldDef {
 pub struct AdtDef {
     /// `DefId` of the struct, enum or union item.
     pub did: DefId,
-    /// 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.
     pub variants: IndexVec<self::layout::VariantIdx, VariantDef>,
     /// Flags of the ADT (e.g. is this a struct? is this non-exhaustive?)
     flags: AdtFlags,