diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2018-01-29 14:11:32 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2018-01-30 21:09:18 +0530 |
| commit | 48a7a1f5e954c1fc6693e0fddc793bf6b3e2bb25 (patch) | |
| tree | cf2760d23d8ce28433fe1d21bd69413cf38f41ed | |
| parent | c6140970f5fcb161c5cd72d0a1b842783b053e55 (diff) | |
| download | rust-48a7a1f5e954c1fc6693e0fddc793bf6b3e2bb25.tar.gz rust-48a7a1f5e954c1fc6693e0fddc793bf6b3e2bb25.zip | |
Document the index used in AggregateKind::Adt
| -rw-r--r-- | src/librustc/mir/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/mir/mod.rs b/src/librustc/mir/mod.rs index 3b644aa13f3..e48d21a3e17 100644 --- a/src/librustc/mir/mod.rs +++ b/src/librustc/mir/mod.rs @@ -1515,8 +1515,8 @@ pub enum AggregateKind<'tcx> { Array(Ty<'tcx>), Tuple, - /// The second field is variant number (discriminant), it's equal - /// to 0 for struct and union expressions. The fourth field is + /// The second field is the variant index. It's equal to 0 for struct + /// and union expressions. The fourth field is /// active field number and is present only for union expressions /// -- e.g. for a union expression `SomeUnion { c: .. }`, the /// active field index would identity the field `c` |
