Skip to content

Commit

Permalink
Fix typos: horizonal -> horizontal (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Sep 16, 2024
1 parent 01c86ce commit 9492b9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions path/src/rect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -554,12 +554,12 @@ mod rect_tests {
assert_eq!(rect.transform(ts).unwrap(), rect_ts);

// Skew box along x-axis - vertical lines at y=c go to y=c+x and
// horizonal lines stay put. Result is bounding box
// horizontal lines stay put. Result is bounding box
let ts = Transform::from_skew(1.0, 0.0);
let bounding_rect: Rect = Rect::from_ltrb(3.0, 2.0, 7.0, 4.0).unwrap();
assert_eq!(rect.transform(ts).unwrap(), bounding_rect);

// Skew box along y-axis - horizonal lines at x=c go to x=c+2y
// Skew box along y-axis - horizontal lines at x=c go to x=c+2y
let ts = Transform::from_skew(0.0, 2.0);
let bounding_rect: Rect = Rect::from_ltrb(1.0, 4.0, 3.0, 10.0).unwrap();
assert_eq!(rect.transform(ts).unwrap(), bounding_rect);
Expand Down

0 comments on commit 9492b9a

Please sign in to comment.