Skip to content

Commit ecaa7bc

Browse files
authored
Update outdated comment: ByVal -> Scalar.
1 parent 739320a commit ecaa7bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/mir/interpret/value.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use hir::def_id::DefId;
77

88
use super::{EvalResult, Pointer, PointerArithmetic, Allocation};
99

10-
/// Represents a constant value in Rust. ByVal and ScalarPair are optimizations which
10+
/// Represents a constant value in Rust. Scalar and ScalarPair are optimizations which
1111
/// matches Value's optimizations for easy conversions between these two types
1212
#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord, RustcEncodable, RustcDecodable, Hash)]
1313
pub enum ConstValue<'tcx> {
@@ -72,7 +72,7 @@ impl<'tcx> ConstValue<'tcx> {
7272
/// A `Value` represents a single self-contained Rust value.
7373
///
7474
/// A `Value` can either refer to a block of memory inside an allocation (`ByRef`) or to a primitve
75-
/// value held directly, outside of any allocation (`ByVal`). For `ByRef`-values, we remember
75+
/// value held directly, outside of any allocation (`Scalar`). For `ByRef`-values, we remember
7676
/// whether the pointer is supposed to be aligned or not (also see Place).
7777
///
7878
/// For optimization of a few very common cases, there is also a representation for a pair of

0 commit comments

Comments
 (0)