Skip to content

Commit d405438

Browse files
Reduce typo count (image-rs#2426)
1 parent 68159de commit d405438

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

CHANGES.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ New features:
106106
Bug fixes:
107107
- Correct limit tests for TIFF.
108108
- Avoid overflow in gif::Decoder::buffer_size.
109-
- Return error instead of using asssertion for Avif decoder unsupported or
109+
- Return error instead of using assertions for Avif decoder unsupported or
110110
invalid bit depth.
111111

112112
### Version 0.24.8

src/buffer.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ impl<P: Pixel> ImageBuffer<P, Vec<P::Subpixel>> {
12841284
///
12851285
/// # Panics
12861286
///
1287-
/// Panics when the resulting image is larger the the maximum size of a vector.
1287+
/// Panics when the resulting image is larger than the maximum size of a vector.
12881288
pub fn from_pixel(width: u32, height: u32, pixel: P) -> ImageBuffer<P, Vec<P::Subpixel>> {
12891289
let mut buf = ImageBuffer::new(width, height);
12901290
for p in buf.pixels_mut() {
@@ -1299,7 +1299,7 @@ impl<P: Pixel> ImageBuffer<P, Vec<P::Subpixel>> {
12991299
///
13001300
/// # Panics
13011301
///
1302-
/// Panics when the resulting image is larger the the maximum size of a vector.
1302+
/// Panics when the resulting image is larger than the maximum size of a vector.
13031303
pub fn from_fn<F>(width: u32, height: u32, mut f: F) -> ImageBuffer<P, Vec<P::Subpixel>>
13041304
where
13051305
F: FnMut(u32, u32) -> P,

src/buffer_par.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ where
384384
///
385385
/// # Panics
386386
///
387-
/// Panics when the resulting image is larger the the maximum size of a vector.
387+
/// Panics when the resulting image is larger than the maximum size of a vector.
388388
pub fn from_par_fn<F>(width: u32, height: u32, f: F) -> ImageBuffer<P, Vec<P::Subpixel>>
389389
where
390390
F: Fn(u32, u32) -> P + Send + Sync,

src/codecs/dxt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ fn decode_dxt5_block(source: &[u8], dest: &mut [u8]) {
246246
.rev()
247247
.fold(0, |t, &b| (t << 8) | u64::from(b));
248248

249-
// alhpa level decode
249+
// alpha level decode
250250
let alphas = alpha_table_dxt5(source[0], source[1]);
251251

252252
// serialize alpha

src/flat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ where
10211021
///
10221022
/// The biggest use case being `ImageBuffer` which expects closely packed
10231023
/// samples in a row major matrix representation. But this error type may be
1024-
/// resused for other import functions. A more versatile user may also try to
1024+
/// reused for other import functions. A more versatile user may also try to
10251025
/// correct the underlying representation depending on the error variant.
10261026
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
10271027
pub enum Error {

0 commit comments

Comments
 (0)