diff options
| author | Ralf Jung <post@ralfj.de> | 2019-08-07 08:43:42 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2019-08-11 12:04:49 +0200 |
| commit | fbd56131a937ffd2ebaef88c8f9788bd4447d66c (patch) | |
| tree | f14f0055364506f7aca03c7b154d354fe4009eba | |
| parent | ca1e94b131eec4795f1a8dcacdb12f574e7a4a74 (diff) | |
| download | rust-fbd56131a937ffd2ebaef88c8f9788bd4447d66c.tar.gz rust-fbd56131a937ffd2ebaef88c8f9788bd4447d66c.zip | |
fix a comment
| -rw-r--r-- | src/librustc/ty/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<self::layout::VariantIdx, VariantDef>, /// Flags of the ADT (e.g. is this a struct? is this non-exhaustive?) flags: AdtFlags, |
