about summary refs log tree commit diff
path: root/src/librustc/mir/interpret
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-09-14 16:42:20 +0200
committerGitHub <noreply@github.com>2019-09-14 16:42:20 +0200
commit45baedb14b94ee26c70439e244b73ab3090a4d13 (patch)
tree40e0a1212987be5fa1d6de2db0840dd6dc6ce8fe /src/librustc/mir/interpret
parentbaaaea3de3e578aaf4eb662e450df416cc729ea2 (diff)
parent094af9743bd8a2b7cc2ae3b81b8110de9a93ea95 (diff)
downloadrust-45baedb14b94ee26c70439e244b73ab3090a4d13.tar.gz
rust-45baedb14b94ee26c70439e244b73ab3090a4d13.zip
Rollup merge of #64116 - ZeGentzy:patch-1, r=oli-obk
Fix minor typo in docs.

This comment is prolly refering to the comment in [const_eval_raw_provider](https://github.com/rust-lang/rust/pull/64116/files#diff-e0b58bb6712edaa8595ad7237542c958R616), not itself.
Diffstat (limited to 'src/librustc/mir/interpret')
-rw-r--r--src/librustc/mir/interpret/value.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/mir/interpret/value.rs b/src/librustc/mir/interpret/value.rs
index d72d8790593..b8bc7414197 100644
--- a/src/librustc/mir/interpret/value.rs
+++ b/src/librustc/mir/interpret/value.rs
@@ -17,8 +17,8 @@ pub struct RawConst<'tcx> {
     pub ty: Ty<'tcx>,
 }
 
-/// Represents a constant value in Rust. `Scalar` and `ScalarPair` are optimizations that
-/// match the `LocalState` optimizations for easy conversions between `Value` and `ConstValue`.
+/// Represents a constant value in Rust. `Scalar` and `Slice` are optimizations for
+/// array length computations, enum discriminants and the pattern matching logic.
 #[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord,
          RustcEncodable, RustcDecodable, Hash, HashStable)]
 pub enum ConstValue<'tcx> {