about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorZach Wolfe <zachrwolfe@me.com>2018-07-03 16:09:13 -0500
committerGitHub <noreply@github.com>2018-07-03 16:09:13 -0500
commitecaa7bc49062db1306b5def2c17c25a188ee2dc7 (patch)
treef5e8607919e3706f2aca8a65699ce794be654a67 /src
parent739320a6011fd78b15328416d3c488d025974039 (diff)
downloadrust-ecaa7bc49062db1306b5def2c17c25a188ee2dc7.tar.gz
rust-ecaa7bc49062db1306b5def2c17c25a188ee2dc7.zip
Update outdated comment: ByVal -> Scalar.
Diffstat (limited to 'src')
-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 24595c93282..ffd138c9c48 100644
--- a/src/librustc/mir/interpret/value.rs
+++ b/src/librustc/mir/interpret/value.rs
@@ -7,7 +7,7 @@ use hir::def_id::DefId;
 
 use super::{EvalResult, Pointer, PointerArithmetic, Allocation};
 
-/// Represents a constant value in Rust. ByVal and ScalarPair are optimizations which
+/// Represents a constant value in Rust. Scalar and ScalarPair are optimizations which
 /// matches Value's optimizations for easy conversions between these two types
 #[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord, RustcEncodable, RustcDecodable, Hash)]
 pub enum ConstValue<'tcx> {
@@ -72,7 +72,7 @@ impl<'tcx> ConstValue<'tcx> {
 /// A `Value` represents a single self-contained Rust value.
 ///
 /// A `Value` can either refer to a block of memory inside an allocation (`ByRef`) or to a primitve
-/// value held directly, outside of any allocation (`ByVal`).  For `ByRef`-values, we remember
+/// value held directly, outside of any allocation (`Scalar`).  For `ByRef`-values, we remember
 /// whether the pointer is supposed to be aligned or not (also see Place).
 ///
 /// For optimization of a few very common cases, there is also a representation for a pair of