From d5ed4a8ffd941371e8c4eb0273cc80ccad7bb26c Mon Sep 17 00:00:00 2001 From: Tomusdrw Date: Wed, 13 Jan 2016 12:24:14 +0100 Subject: [PATCH] Fixed typos --- src/hash.rs | 2 +- src/uint.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hash.rs b/src/hash.rs index 087454ceb..ad2d19956 100644 --- a/src/hash.rs +++ b/src/hash.rs @@ -381,7 +381,7 @@ impl<'a> From<&'a U256> for H256 { value.to_bytes(&mut ret); ret } - } + } } impl From for Address { diff --git a/src/uint.rs b/src/uint.rs index b7411fd30..8240a20a3 100644 --- a/src/uint.rs +++ b/src/uint.rs @@ -71,7 +71,7 @@ macro_rules! construct_uint { pub fn as_u32(&self) -> u32 { let &$name(ref arr) = self; if (arr[0] & (0xffffffffu64 << 32)) != 0 { - panic!("Intger overflow when casting U256") + panic!("Integer overflow when casting U256") } self.as_u64() as u32 } @@ -82,7 +82,7 @@ macro_rules! construct_uint { let &$name(ref arr) = self; for i in 1..$n_words { if arr[i] != 0 { - panic!("Intger overflow when casting U256") + panic!("Integer overflow when casting U256") } } arr[0]