Skip to content

Commit 48a7a1f

Browse files
committed
Document the index used in AggregateKind::Adt
1 parent c614097 commit 48a7a1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/mir/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,8 +1515,8 @@ pub enum AggregateKind<'tcx> {
15151515
Array(Ty<'tcx>),
15161516
Tuple,
15171517

1518-
/// The second field is variant number (discriminant), it's equal
1519-
/// to 0 for struct and union expressions. The fourth field is
1518+
/// The second field is the variant index. It's equal to 0 for struct
1519+
/// and union expressions. The fourth field is
15201520
/// active field number and is present only for union expressions
15211521
/// -- e.g. for a union expression `SomeUnion { c: .. }`, the
15221522
/// active field index would identity the field `c`

0 commit comments

Comments
 (0)