From 5db0af59d7367780e7fe2afe7038a07d0462dbf9 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Thu, 13 Sep 2018 13:02:15 +1000 Subject: [PATCH] Fix ssz typos and unused import --- ssz/src/encode.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ssz/src/encode.rs b/ssz/src/encode.rs index b36c2c848..7e1cb80eb 100644 --- a/ssz/src/encode.rs +++ b/ssz/src/encode.rs @@ -14,7 +14,7 @@ pub struct SszStream { } impl SszStream { - /// Create a new, empty steam for writing ssz values. + /// Create a new, empty stream for writing ssz values. pub fn new() -> Self { SszStream { buffer: Vec::new() @@ -29,7 +29,7 @@ impl SszStream { self } - /// Append some ssz encoded bytes to the steam. + /// Append some ssz encoded bytes to the stream. /// /// The length of the supplied bytes will be concatenated /// to the stream before the supplied bytes. @@ -78,7 +78,6 @@ pub fn encode_length(len: usize, length_bytes: usize) -> Vec { #[cfg(test)] mod tests { use super::*; - use super::super::ethereum_types::{ H256, U256 }; #[test] #[should_panic]