Skip to content

Commit

Permalink
Fix missed typo in previous fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jam1garner committed Oct 13, 2023
1 parent c0b9809 commit 4e88f4b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/colors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ macro_rules! colors {
type DynEquivalent = ansi_colors::AnsiColors;

#[doc(hidden)]
const DYN_EQUIVELANT: Self::DynEquivalent = ansi_colors::AnsiColors::$color;
const DYN_EQUIVALENT: Self::DynEquivalent = ansi_colors::AnsiColors::$color;

#[doc(hidden)]
fn into_dyncolors() -> crate::DynColors {
Expand Down
2 changes: 1 addition & 1 deletion src/colors/custom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl<const R: u8, const G: u8, const B: u8> Color for CustomColor<R, G, B> {
type DynEquivalent = crate::Rgb;

#[doc(hidden)]
const DYN_EQUIVELANT: Self::DynEquivalent = crate::Rgb(R, G, B);
const DYN_EQUIVALENT: Self::DynEquivalent = crate::Rgb(R, G, B);

#[doc(hidden)]
fn into_dyncolors() -> crate::DynColors {
Expand Down
2 changes: 1 addition & 1 deletion src/colors/xterm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ macro_rules! xterm_colors {
type DynEquivalent = dynamic::XtermColors;

#[doc(hidden)]
const DYN_EQUIVELANT: Self::DynEquivalent = dynamic::XtermColors::$name;
const DYN_EQUIVALENT: 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 @@ -101,7 +101,7 @@ macro_rules! color_methods {
self,
bg: NewBg,
) -> ComboDynColorDisplay<'a, Fg::DynEquivalent, NewBg, T> {
ComboDynColorDisplay(self.0, Fg::DYN_EQUIVELANT, bg)
ComboDynColorDisplay(self.0, Fg::DYN_EQUIVALENT, bg)
}

/// Set the foreground color generically
Expand Down Expand Up @@ -160,7 +160,7 @@ macro_rules! color_methods {
self,
fg: NewFg,
) -> ComboDynColorDisplay<'a, NewFg, Bg::DynEquivalent, T> {
ComboDynColorDisplay(self.0, fg, Bg::DYN_EQUIVELANT)
ComboDynColorDisplay(self.0, fg, Bg::DYN_EQUIVALENT)
}

/// Set the background color at runtime. Only use if you do not know what color to use at
Expand Down Expand Up @@ -236,7 +236,7 @@ macro_rules! color_methods {
self,
bg: NewBg,
) -> ComboDynColorDisplay<'a, Fg::DynEquivalent, NewBg, T> {
ComboDynColorDisplay(self.0, Fg::DYN_EQUIVELANT, bg)
ComboDynColorDisplay(self.0, Fg::DYN_EQUIVALENT, bg)
}

/// Set the foreground color at runtime. Only use if you do not know which color will be used at
Expand All @@ -252,7 +252,7 @@ macro_rules! color_methods {
self,
fg: NewFg,
) -> ComboDynColorDisplay<'a, NewFg, Bg::DynEquivalent, T> {
ComboDynColorDisplay(self.0, fg, Bg::DYN_EQUIVELANT)
ComboDynColorDisplay(self.0, fg, Bg::DYN_EQUIVALENT)
}

/// Set the foreground color generically
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ pub trait Color {
type DynEquivalent: DynColor;

#[doc(hidden)]
const DYN_EQUIVELANT: Self::DynEquivalent;
const DYN_EQUIVALENT: Self::DynEquivalent;

#[doc(hidden)]
fn into_dyncolors() -> crate::DynColors;
Expand Down

0 comments on commit 4e88f4b

Please sign in to comment.