Rollup merge of #139202 - bjorn3:improve_comment, r=jieyouxu

Improve docs of ValTreeKind
This commit is contained in:
Matthias Krüger 2025-04-01 20:25:25 +02:00 committed by GitHub
commit 99826dd9c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,7 +33,7 @@ pub enum ValTreeKind<'tcx> {
/// The fields of any kind of aggregate. Structs, tuples and arrays are represented by
/// listing their fields' values in order.
///
/// Enums are represented by storing their discriminant as a field, followed by all
/// Enums are represented by storing their variant index as a u32 field, followed by all
/// the fields of the variant.
///
/// ZST types are represented as an empty slice.