Shorten PrimVal::Undefined to PrimVal::Undef.

This commit is contained in:
Scott Olson 2016-12-16 00:07:02 -08:00
parent e615f671ce
commit 33f97feafb

View File

@ -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 @@ impl PrimVal {
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"),
}
}