Skip to content

Commit 31efbe7

Browse files
committed
Change "requires" to "assumes"
1 parent f96f6e2 commit 31efbe7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/imageops/fast_blur.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::{ImageBuffer, Pixel, Primitive};
55
/// Approximation of Gaussian blur after
66
/// Kovesi, P.: Fast Almost-Gaussian Filtering The Australian Pattern
77
/// Recognition Society Conference: DICTA 2010. December 2010. Sydney.
8-
/// This method requires alpha pre-multiplication for images that contain non-constant alpha.
8+
/// This method assumes alpha pre-multiplication for images that contain non-constant alpha.
99
#[must_use]
1010
pub fn fast_blur<P: Pixel>(
1111
image_buffer: &ImageBuffer<P, Vec<P::Subpixel>>,

src/imageops/sample.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ where
930930
/// Resize the supplied image to the specified dimensions.
931931
/// ```nwidth``` and ```nheight``` are the new dimensions.
932932
/// ```filter``` is the sampling filter to use.
933-
/// This method requires alpha pre-multiplication for images that contain non-constant alpha.
933+
/// This method assumes alpha pre-multiplication for images that contain non-constant alpha.
934934
pub fn resize<I: GenericImageView>(
935935
image: &I,
936936
nwidth: u32,
@@ -990,7 +990,7 @@ where
990990
/// ```sigma``` is a measure of how much to blur by.
991991
/// Use [`crate::imageops::fast_blur()`] for a faster but less
992992
/// accurate version.
993-
/// This method requires alpha pre-multiplication for images that contain non-constant alpha.
993+
/// This method assumes alpha pre-multiplication for images that contain non-constant alpha.
994994
pub fn blur<I: GenericImageView>(
995995
image: &I,
996996
sigma: f32,

0 commit comments

Comments
 (0)