Skip to content

Commit 9daffa3

Browse files
bjorn3jieyouxu
authored andcommitted
Improve docs of ValTreeKind
1 parent d0b75c4 commit 9daffa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/ty/consts/valtree.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub enum ValTreeKind<'tcx> {
3333
/// The fields of any kind of aggregate. Structs, tuples and arrays are represented by
3434
/// listing their fields' values in order.
3535
///
36-
/// Enums are represented by storing their discriminant as a field, followed by all
36+
/// Enums are represented by storing their variant index as a u32 field, followed by all
3737
/// the fields of the variant.
3838
///
3939
/// ZST types are represented as an empty slice.

0 commit comments

Comments
 (0)