summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/egui/src/context.rs2
-rw-r--r--crates/epaint/src/bezier.rs2
-rw-r--r--crates/epaint/src/shape.rs4
3 files changed, 4 insertions, 4 deletions
diff --git a/crates/egui/src/context.rs b/crates/egui/src/context.rs
index c8875dc3..e8b0803b 100644
--- a/crates/egui/src/context.rs
+++ b/crates/egui/src/context.rs
@@ -3597,7 +3597,7 @@ impl Context {
///
/// This is the easier type of viewport to use, but it is less performant
/// at it requires both parent and child to repaint if any one of them needs repainting,
- /// which efficvely produce double work for two viewports, and triple work for three viewports, etc.
+ /// which effectively produce double work for two viewports, and triple work for three viewports, etc.
/// To avoid this, use [`Self::show_viewport_deferred`] instead.
///
/// The given id must be unique for each viewport.
diff --git a/crates/epaint/src/bezier.rs b/crates/epaint/src/bezier.rs
index 7c55352c..05fff892 100644
--- a/crates/epaint/src/bezier.rs
+++ b/crates/epaint/src/bezier.rs
@@ -172,7 +172,7 @@ impl CubicBezierShape {
}
}
- // copied from lyon::geom::flattern_cubic.rs
+ // copied from <https://docs.rs/lyon_geom/latest/src/lyon_geom/cubic_bezier.rs.html#384-396>
// Computes the number of quadratic bézier segments to approximate a cubic one.
// Derived by Raph Levien from section 10.6 of Sedeberg's CAGD notes
// https://scholarsarchive.byu.edu/cgi/viewcontent.cgi?article=1000&context=facpub#section.10.6
diff --git a/crates/epaint/src/shape.rs b/crates/epaint/src/shape.rs
index d69a832e..6f67a2bc 100644
--- a/crates/epaint/src/shape.rs
+++ b/crates/epaint/src/shape.rs
@@ -1001,7 +1001,7 @@ pub struct TextShape {
pub underline: Stroke,
/// Any [`Color32::PLACEHOLDER`] in the galley will be replaced by the given color.
- /// Affects everything: backgrounds, glyphs, strikethough, underline, etc.
+ /// Affects everything: backgrounds, glyphs, strikethrough, underline, etc.
pub fallback_color: Color32,
/// If set, the text color in the galley will be ignored and replaced
@@ -1011,7 +1011,7 @@ pub struct TextShape {
pub override_text_color: Option<Color32>,
/// If set, the text will be rendered with the given opacity in gamma space
- /// Affects everything: backgrounds, glyphs, strikethough, underline, etc.
+ /// Affects everything: backgrounds, glyphs, strikethrough, underline, etc.
pub opacity_factor: f32,
/// Rotate text by this many radians clockwise.