diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-04-01 20:25:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-01 20:25:25 +0200 |
| commit | 99826dd9c79a8603b0f88d0b091cc86d0dec523f (patch) | |
| tree | 0eb50966cc069a71186b03fb913a6ac32496dddd | |
| parent | aafb17ddca3effa38a125335dacfb10da5224303 (diff) | |
| parent | f153685fd0478fbbc346cfeb49f57965a9bc43d1 (diff) | |
| download | rust-99826dd9c79a8603b0f88d0b091cc86d0dec523f.tar.gz rust-99826dd9c79a8603b0f88d0b091cc86d0dec523f.zip | |
Rollup merge of #139202 - bjorn3:improve_comment, r=jieyouxu
Improve docs of ValTreeKind
| -rw-r--r-- | compiler/rustc_middle/src/ty/consts/valtree.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/consts/valtree.rs b/compiler/rustc_middle/src/ty/consts/valtree.rs index 72263d84580..2f21d19e03c 100644 --- a/compiler/rustc_middle/src/ty/consts/valtree.rs +++ b/compiler/rustc_middle/src/ty/consts/valtree.rs @@ -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. |
