diff --git a/Cargo.toml b/Cargo.toml index a08ed00..171ed84 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bswap" -version = "0.2.1" +version = "0.2.2" authors = ["Andrew Robbins "] license = "MIT" homepage = "https://andydude.github.io/rust-bswap/bswap/index.html" diff --git a/src/lib.rs b/src/lib.rs index b4e0136..cd0c7fd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -184,7 +184,7 @@ pub mod u8 { } } - pub fn endode_hex(src: &[u8]) -> String { + pub fn encode_hex(src: &[u8]) -> String { static CHARS: &'static[u8] = b"0123456789abcdef"; let mut v = Vec::with_capacity(src.len() * 2); for &byte in src.iter() {