Skip to content

Commit 99826dd

Browse files
authored
Rollup merge of rust-lang#139202 - bjorn3:improve_comment, r=jieyouxu
Improve docs of ValTreeKind
2 parents aafb17d + f153685 commit 99826dd

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)