diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/error.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/error.rs b/src/error.rs index f955a28..7957d2f 100644 --- a/src/error.rs +++ b/src/error.rs @@ -23,10 +23,10 @@ impl fmt::Display for Unexpected { fn fmt(&self, f: &mut fmt::Formatter) -> result::Result<(), fmt::Error> { match *self { Unexpected::Bool(b) => write!(f, "boolean `{}`", b), - Unexpected::I64(i) => write!(f, "integer 64 bit `{}`", i), - Unexpected::I128(i) => write!(f, "integer 128 bit `{}`", i), - Unexpected::U64(i) => write!(f, "unsigned integer 64 bit `{}`", i), - Unexpected::U128(i) => write!(f, "unsigned integer 128 bit `{}`", i), + Unexpected::I64(i) => write!(f, "64-bit integer `{}`", i), + Unexpected::I128(i) => write!(f, "128-bit integer `{}`", i), + Unexpected::U64(i) => write!(f, "64-bit unsigned integer `{}`", i), + Unexpected::U128(i) => write!(f, "128-bit unsigned integer `{}`", i), Unexpected::Float(v) => write!(f, "floating point `{}`", v), Unexpected::Str(ref s) => write!(f, "string {:?}", s), Unexpected::Unit => write!(f, "unit value"), |