about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-03-25 15:36:26 +0100
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-04-01 10:50:02 +0200
commitf153685fd0478fbbc346cfeb49f57965a9bc43d1 (patch)
tree082cd6606bc647762208a2263dbd201cc2d573ae
parent97ea17b71aba0badfe9c8295f57a434bf79bdb72 (diff)
downloadrust-f153685fd0478fbbc346cfeb49f57965a9bc43d1.tar.gz
rust-f153685fd0478fbbc346cfeb49f57965a9bc43d1.zip
Improve docs of ValTreeKind
-rw-r--r--compiler/rustc_middle/src/ty/consts/valtree.rs2
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.