Skip to content

Commit

Permalink
Merge pull request image-rs#1330 from elindsey/master
Browse files Browse the repository at this point in the history
fix typo, 'present panics' -> 'prevent panics'
  • Loading branch information
HeroicKatora committed Oct 8, 2020
2 parents fd21a14 + 4b7659e commit 3739a84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,13 @@ pub trait Pixel: Copy + Clone {
/// Returns a view into a slice.
///
/// Note: The slice length is not checked on creation. Thus the caller has to ensure
/// that the slice is long enough to present panics if the pixel is used later on.
/// that the slice is long enough to prevent panics if the pixel is used later on.
fn from_slice(slice: &[Self::Subpixel]) -> &Self;

/// Returns mutable view into a mutable slice.
///
/// Note: The slice length is not checked on creation. Thus the caller has to ensure
/// that the slice is long enough to present panics if the pixel is used later on.
/// that the slice is long enough to prevent panics if the pixel is used later on.
fn from_slice_mut(slice: &mut [Self::Subpixel]) -> &mut Self;

/// Convert this pixel to RGB
Expand Down

0 comments on commit 3739a84

Please sign in to comment.