Skip to content

Commit

Permalink
Fix typo in public interface
Browse files Browse the repository at this point in the history
See #46. Sorry.
  • Loading branch information
jam1garner committed Oct 12, 2023
1 parent 50217bc commit 647100b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/colors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/colors/custom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ impl<const R: u8, const G: u8, const B: u8> Color for CustomColor<R, G, B> {
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 {
Expand Down
4 changes: 2 additions & 2 deletions src/colors/xterm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions src/combo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ macro_rules! color_methods {
pub fn on_color<NewBg: DynColor>(
self,
bg: NewBg,
) -> ComboDynColorDisplay<'a, Fg::DynEquivelant, NewBg, T> {
) -> ComboDynColorDisplay<'a, Fg::DynEquivalent, NewBg, T> {
ComboDynColorDisplay(self.0, Fg::DYN_EQUIVELANT, bg)
}

Expand Down Expand Up @@ -159,7 +159,7 @@ macro_rules! color_methods {
pub fn color<NewFg: DynColor>(
self,
fg: NewFg,
) -> ComboDynColorDisplay<'a, NewFg, Bg::DynEquivelant, T> {
) -> ComboDynColorDisplay<'a, NewFg, Bg::DynEquivalent, T> {
ComboDynColorDisplay(self.0, fg, Bg::DYN_EQUIVELANT)
}

Expand Down Expand Up @@ -235,7 +235,7 @@ macro_rules! color_methods {
pub fn on_color<NewBg: DynColor>(
self,
bg: NewBg,
) -> ComboDynColorDisplay<'a, Fg::DynEquivelant, NewBg, T> {
) -> ComboDynColorDisplay<'a, Fg::DynEquivalent, NewBg, T> {
ComboDynColorDisplay(self.0, Fg::DYN_EQUIVELANT, bg)
}

Expand All @@ -251,7 +251,7 @@ macro_rules! color_methods {
pub fn color<NewFg: DynColor>(
self,
fg: NewFg,
) -> ComboDynColorDisplay<'a, NewFg, Bg::DynEquivelant, T> {
) -> ComboDynColorDisplay<'a, NewFg, Bg::DynEquivalent, T> {
ComboDynColorDisplay(self.0, fg, Bg::DYN_EQUIVELANT)
}

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 647100b

Please sign in to comment.