mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
Fix off-by-one in mir syntax doc
This commit is contained in:
parent
8e4e55e524
commit
e24f5ac56b
@ -1165,7 +1165,7 @@ pub enum AggregateKind<'tcx> {
|
|||||||
Tuple,
|
Tuple,
|
||||||
|
|
||||||
/// The second field is the variant index. It's equal to 0 for struct
|
/// The second field is the variant index. It's equal to 0 for struct
|
||||||
/// and union expressions. The fourth field is
|
/// and union expressions. The last field is the
|
||||||
/// active field number and is present only for union expressions
|
/// active field number and is present only for union expressions
|
||||||
/// -- e.g., for a union expression `SomeUnion { c: .. }`, the
|
/// -- e.g., for a union expression `SomeUnion { c: .. }`, the
|
||||||
/// active field index would identity the field `c`
|
/// active field index would identity the field `c`
|
||||||
|
Loading…
Reference in New Issue
Block a user