Skip to content

Commit

Permalink
docs: use Color in doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-rev committed Dec 19, 2024
1 parent 255afa9 commit afb4d6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helix-view/src/graphics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ impl Color {
/// # Examples
///
/// ```rust
/// use helix_view::theme::Color
///
/// let color1 = Color::from_hex("#c0ffee").unwrap();
/// let color2 = Color::Rgb(192, 255, 238);
///
Expand Down

0 comments on commit afb4d6c

Please sign in to comment.