diff --git a/crates/egui/src/context.rs b/crates/egui/src/context.rs index c8875dc3bf0..e8b0803b958 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 7c55352cfeb..05fff89298b 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 // 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 d69a832efb4..6f67a2bc6a6 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, /// 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.