Skip to content

Commit

Permalink
fix(basic_color.rs): fix issue with document comment test for color_c…
Browse files Browse the repository at this point in the history
…ode macro
  • Loading branch information
Syaw0 committed Nov 6, 2024
1 parent fbf1c1b commit 860c7a5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/styles/basic_color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ impl Stylify for BasicColor {
}

/// A macro for generating color constants.
///
/// Usage:
///
/// ```rust
/// color_code!(MY_COLOR, { fg: 30, bg: 40 });
/// ```
macro_rules! color_code {
($name:ident, { fg: $fg:expr, bg: $bg:expr }) => {
pub const $name:Styles = Styles::StyleBasicColor(BasicColor { fg: $fg, bg: $bg });
Expand Down

0 comments on commit 860c7a5

Please sign in to comment.