Skip to content

Commit

Permalink
fix doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
ripytide authored and kornelski committed Aug 7, 2024
1 parent 6f59e19 commit 45e464a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pixel_traits/pixel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ pub trait Pixel:
/// let mut rgb = Rgb {r: 0_u8, g: 10, b: 100};
/// let mut rgba = Rgba {r: 0_u8, g: 10, b: 100, a: 50};
///
/// *rgb.as_array_mut()[1] = 40;
/// *rgba.as_array_mut()[2] = 40;
/// rgb.as_array_mut()[1] = 40;
/// rgba.as_array_mut()[2] = 40;
///
/// assert_eq!(rgb.as_array(), &[0, 40, 100]);
/// assert_eq!(rgba.as_array(), &[0, 10, 40, 50]);
Expand Down

0 comments on commit 45e464a

Please sign in to comment.