From 91d821a1f2995767edcd94946dc41834440936ea Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Tue, 5 Mar 2024 18:56:30 +0800 Subject: [PATCH] fix typos (#556) --- content/src/outline.rs | 10 +++++----- shaders/README.md | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/content/src/outline.rs b/content/src/outline.rs index c0493f40..c86086a7 100644 --- a/content/src/outline.rs +++ b/content/src/outline.rs @@ -367,14 +367,14 @@ impl Contour { return Contour::from_rect(rect); } let radius = radius.min(rect.size() * 0.5); - let contol_point_offset = radius * QUARTER_ARC_CP_FROM_OUTSIDE; + let control_point_offset = radius * QUARTER_ARC_CP_FROM_OUTSIDE; let mut contour = Contour::with_capacity(8); // upper left corner { let p0 = rect.origin(); - let p1 = p0 + contol_point_offset; + let p1 = p0 + control_point_offset; let p2 = p0 + radius; contour.push_endpoint(vec2f(p0.x(), p2.y())); contour.push_cubic( @@ -387,7 +387,7 @@ impl Contour { // upper right { let p0 = rect.upper_right(); - let p1 = p0 + contol_point_offset * vec2f(-1.0, 1.0); + let p1 = p0 + control_point_offset * vec2f(-1.0, 1.0); let p2 = p0 + radius * vec2f(-1.0, 1.0); contour.push_endpoint(vec2f(p2.x(), p0.y())); contour.push_cubic( @@ -400,7 +400,7 @@ impl Contour { // lower right { let p0 = rect.lower_right(); - let p1 = p0 + contol_point_offset * vec2f(-1.0, -1.0); + let p1 = p0 + control_point_offset * vec2f(-1.0, -1.0); let p2 = p0 + radius * vec2f(-1.0, -1.0); contour.push_endpoint(vec2f(p0.x(), p2.y())); contour.push_cubic( @@ -413,7 +413,7 @@ impl Contour { // lower left { let p0 = rect.lower_left(); - let p1 = p0 + contol_point_offset * vec2f(1.0, -1.0); + let p1 = p0 + control_point_offset * vec2f(1.0, -1.0); let p2 = p0 + radius * vec2f(1.0, -1.0); contour.push_endpoint(vec2f(p2.x(), p0.y())); contour.push_cubic( diff --git a/shaders/README.md b/shaders/README.md index 9f9680a6..1ab38cdd 100644 --- a/shaders/README.md +++ b/shaders/README.md @@ -31,5 +31,5 @@ export SPIRVCROSS=spirv-cross.exe Note: the Windows versions of `glslangValidator` and `spirv-cross` may change the line endings of the generated output. Please take care to ensure that -unintended line ending changes aren't accidentally commited, for instance by +unintended line ending changes aren't accidentally committed, for instance by [configuring Git to automatically handle line endings](https://docs.github.com/en/github/using-git/configuring-git-to-handle-line-endings#global-settings-for-line-endings).