Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Oct 1, 2024
1 parent 5f8f149 commit 24cd711
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/egui/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion crates/epaint/src/bezier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions crates/epaint/src/shape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit 24cd711

Please sign in to comment.