aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f182b41..d3f5b4e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -20,7 +20,7 @@ trait FromEndian: Sized {
fn from_be_bytes<B: AsRef<[u8]>>(bytes: B) -> Option<Self>;
}
-macro_rules! impl_endian_read {
+macro_rules! impl_from_endian {
($ty: ty) => {
impl FromEndian for $ty {
fn from_le_bytes<B: AsRef<[u8]>>(bytes: B) -> Option<Self> {
@@ -44,9 +44,9 @@ macro_rules! impl_endian_read {
};
}
-impl_endian_read!(u16);
-impl_endian_read!(u32);
-impl_endian_read!(u64);
+impl_from_endian!(u16);
+impl_from_endian!(u32);
+impl_from_endian!(u64);
#[derive(Debug, Clone, Copy)]
enum Endian {