提交 33f97fea 编写于 作者: S Scott Olson

Shorten PrimVal::Undefined to PrimVal::Undef.

上级 e615f671
......@@ -59,7 +59,7 @@ pub enum PrimVal {
/// An undefined `PrimVal`, for representing values that aren't safe to examine, but are safe
/// to copy around, just like undefined bytes in an `Allocation`.
Undefined,
Undef,
}
#[derive(Clone, Copy, Debug, PartialEq)]
......@@ -123,7 +123,7 @@ pub fn bits(&self) -> u64 {
match *self {
PrimVal::Bytes(b) => b,
PrimVal::Ptr(p) => p.offset,
PrimVal::Undefined => panic!(".bits()() on PrimVal::Undefined"),
PrimVal::Undef => panic!(".bits()() on PrimVal::Undef"),
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册