From: Ralf Jung Date: Wed, 7 Aug 2019 06:43:42 +0000 (+0200) Subject: fix a comment X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=fbd56131a937ffd2ebaef88c8f9788bd4447d66c;p=rust.git fix a comment --- diff --git a/src/librustc/ty/mod.rs b/src/librustc/ty/mod.rs index a10578b0a43..da7f894e84d 100644 --- a/src/librustc/ty/mod.rs +++ b/src/librustc/ty/mod.rs @@ -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, /// Flags of the ADT (e.g. is this a struct? is this non-exhaustive?) flags: AdtFlags,