Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed Sep 9, 2023
1 parent af10103 commit b7e0f6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,25 +322,25 @@ impl Canvas {

// NOTE: suppress the lint because we mirror `CanvasRenderingContext2D`’s `putImageData`, and
// this is just an internal API used by this module only, so it’s not too relevant.
#[allow(clippy::too-many-arguments)]
#[allow(clippy::too_many_arguments)]
fn put_image_data(
&self,
imagedata: &ImageData,
dx: f64,
dy: f64,
dirty_x: f64,
dirty_y: f64,
widht: f64,
width: f64,
height: f64,
) -> Result<(), JsValue> {
match self {
Self::Canvas { ctx, .. } => ctx
.put_image_data_with_dirty_x_and_dirty_y_and_dirty_width_and_dirty_height(
imagedata, dx, dy, dirty_x, dirty_y, widht, height,
imagedata, dx, dy, dirty_x, dirty_y, width, height,
),
Self::OffscreenCanvas { ctx, .. } => ctx
.put_image_data_with_dirty_x_and_dirty_y_and_dirty_width_and_dirty_height(
imagedata, dx, dy, dirty_x, dirty_y, widht, height,
imagedata, dx, dy, dirty_x, dirty_y, width, height,
),
}
}
Expand Down

0 comments on commit b7e0f6a

Please sign in to comment.