From 647100bad425310a83fe8c334556f2b7da6ab24e Mon Sep 17 00:00:00 2001 From: jam1garner Date: Thu, 12 Oct 2023 16:43:45 -0400 Subject: [PATCH] Fix typo in public interface See #46. Sorry. --- src/colors.rs | 4 ++-- src/colors/custom.rs | 4 ++-- src/colors/xterm.rs | 4 ++-- src/combo.rs | 8 ++++---- src/lib.rs | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/colors.rs b/src/colors.rs index 866ba78..937f50c 100644 --- a/src/colors.rs +++ b/src/colors.rs @@ -88,10 +88,10 @@ macro_rules! colors { const RAW_ANSI_BG: &'static str = stringify!($bg); #[doc(hidden)] - type DynEquivelant = ansi_colors::AnsiColors; + type DynEquivalent = ansi_colors::AnsiColors; #[doc(hidden)] - const DYN_EQUIVELANT: Self::DynEquivelant = ansi_colors::AnsiColors::$color; + const DYN_EQUIVELANT: Self::DynEquivalent = ansi_colors::AnsiColors::$color; #[doc(hidden)] fn into_dyncolors() -> crate::DynColors { diff --git a/src/colors/custom.rs b/src/colors/custom.rs index 2e4c7ea..b14b761 100644 --- a/src/colors/custom.rs +++ b/src/colors/custom.rs @@ -92,10 +92,10 @@ impl Color for CustomColor { unsafe { core::mem::transmute(&rgb_to_ansi_color(R, G, B, false) as &[u8]) }; #[doc(hidden)] - type DynEquivelant = crate::Rgb; + type DynEquivalent = crate::Rgb; #[doc(hidden)] - const DYN_EQUIVELANT: Self::DynEquivelant = crate::Rgb(R, G, B); + const DYN_EQUIVELANT: Self::DynEquivalent = crate::Rgb(R, G, B); #[doc(hidden)] fn into_dyncolors() -> crate::DynColors { diff --git a/src/colors/xterm.rs b/src/colors/xterm.rs index f863ec1..142fde0 100644 --- a/src/colors/xterm.rs +++ b/src/colors/xterm.rs @@ -104,10 +104,10 @@ macro_rules! xterm_colors { const RAW_ANSI_FG: &'static str = concat!("48;5;", stringify!($xterm_num)); #[doc(hidden)] - type DynEquivelant = dynamic::XtermColors; + type DynEquivalent = dynamic::XtermColors; #[doc(hidden)] - const DYN_EQUIVELANT: Self::DynEquivelant = dynamic::XtermColors::$name; + const DYN_EQUIVELANT: Self::DynEquivalent = dynamic::XtermColors::$name; #[doc(hidden)] fn into_dyncolors() -> crate::DynColors { diff --git a/src/combo.rs b/src/combo.rs index e5675dd..db8a061 100644 --- a/src/combo.rs +++ b/src/combo.rs @@ -100,7 +100,7 @@ macro_rules! color_methods { pub fn on_color( self, bg: NewBg, - ) -> ComboDynColorDisplay<'a, Fg::DynEquivelant, NewBg, T> { + ) -> ComboDynColorDisplay<'a, Fg::DynEquivalent, NewBg, T> { ComboDynColorDisplay(self.0, Fg::DYN_EQUIVELANT, bg) } @@ -159,7 +159,7 @@ macro_rules! color_methods { pub fn color( self, fg: NewFg, - ) -> ComboDynColorDisplay<'a, NewFg, Bg::DynEquivelant, T> { + ) -> ComboDynColorDisplay<'a, NewFg, Bg::DynEquivalent, T> { ComboDynColorDisplay(self.0, fg, Bg::DYN_EQUIVELANT) } @@ -235,7 +235,7 @@ macro_rules! color_methods { pub fn on_color( self, bg: NewBg, - ) -> ComboDynColorDisplay<'a, Fg::DynEquivelant, NewBg, T> { + ) -> ComboDynColorDisplay<'a, Fg::DynEquivalent, NewBg, T> { ComboDynColorDisplay(self.0, Fg::DYN_EQUIVELANT, bg) } @@ -251,7 +251,7 @@ macro_rules! color_methods { pub fn color( self, fg: NewFg, - ) -> ComboDynColorDisplay<'a, NewFg, Bg::DynEquivelant, T> { + ) -> ComboDynColorDisplay<'a, NewFg, Bg::DynEquivalent, T> { ComboDynColorDisplay(self.0, fg, Bg::DYN_EQUIVELANT) } diff --git a/src/lib.rs b/src/lib.rs index b9c31fb..9d506e4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -112,10 +112,10 @@ pub trait Color { const RAW_ANSI_BG: &'static str; #[doc(hidden)] - type DynEquivelant: DynColor; + type DynEquivalent: DynColor; #[doc(hidden)] - const DYN_EQUIVELANT: Self::DynEquivelant; + const DYN_EQUIVELANT: Self::DynEquivalent; #[doc(hidden)] fn into_dyncolors() -> crate::DynColors;