about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2018-01-29 14:11:32 +0530
committerManish Goregaokar <manishsmail@gmail.com>2018-01-30 21:09:18 +0530
commit48a7a1f5e954c1fc6693e0fddc793bf6b3e2bb25 (patch)
treecf2760d23d8ce28433fe1d21bd69413cf38f41ed
parentc6140970f5fcb161c5cd72d0a1b842783b053e55 (diff)
downloadrust-48a7a1f5e954c1fc6693e0fddc793bf6b3e2bb25.tar.gz
rust-48a7a1f5e954c1fc6693e0fddc793bf6b3e2bb25.zip
Document the index used in AggregateKind::Adt
-rw-r--r--src/librustc/mir/mod.rs4
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`