about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Schneider <github35764891676564198441@oli-obk.de>2018-05-22 19:31:21 +0200
committerOliver Schneider <github35764891676564198441@oli-obk.de>2018-05-24 20:49:37 +0200
commitff652b8a012d5478f926f8a43808a5e506ae4721 (patch)
treeace13d828a579d5fd1c45cef9b4412d5de04bde2
parentf82256e473aad86bd44eb9010178f378ae6470c6 (diff)
downloadrust-ff652b8a012d5478f926f8a43808a5e506ae4721.tar.gz
rust-ff652b8a012d5478f926f8a43808a5e506ae4721.zip
Update outdated comment
-rw-r--r--src/librustc_mir/interpret/eval_context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/interpret/eval_context.rs b/src/librustc_mir/interpret/eval_context.rs
index 963e5b5ec62..7fe1bef9120 100644
--- a/src/librustc_mir/interpret/eval_context.rs
+++ b/src/librustc_mir/interpret/eval_context.rs
@@ -76,7 +76,7 @@ pub struct Frame<'mir, 'tcx: 'mir> {
     /// `None` represents a local that is currently dead, while a live local
     /// can either directly contain `Scalar` or refer to some part of an `Allocation`.
     ///
-    /// Before being initialized, arguments are `Value::Scalar(Scalar::Undef)` and other locals are `None`.
+    /// Before being initialized, arguments are `Value::Scalar(Scalar::undef())` and other locals are `None`.
     pub locals: IndexVec<mir::Local, Option<Value>>,
 
     ////////////////////////////////////////////////////////////////////////////////