Skip to content

Commit e24f5ac

Browse files
committed
Fix off-by-one in mir syntax doc
1 parent 8e4e55e commit e24f5ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/mir/syntax.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ pub enum AggregateKind<'tcx> {
11651165
Tuple,
11661166

11671167
/// The second field is the variant index. It's equal to 0 for struct
1168-
/// and union expressions. The fourth field is
1168+
/// and union expressions. The last field is the
11691169
/// active field number and is present only for union expressions
11701170
/// -- e.g., for a union expression `SomeUnion { c: .. }`, the
11711171
/// active field index would identity the field `c`

0 commit comments

Comments
 (0)