Skip to content

Commit

Permalink
Improve comment in text layout code
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk authored and hacknus committed Oct 30, 2024
1 parent 2dc248d commit 2de81ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/epaint/src/text/text_layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -658,9 +658,9 @@ fn galley_from_rows(

if did_exceed_wrap_width_by_a_lot {
// If the user picked a too aggressive wrap width (e.g. more narrow than any individual glyph),
// we should let the user know.
// we should let the user know by reporting that our width is wider than the wrap width.
} else {
// Make sure we don't go over the max wrap width the user picked:
// Make sure we don't report being wider than the wrap width the user picked:
rect.max.x = rect.max.x.at_most(rect.min.x + job.wrap.max_width).floor();
}
}
Expand Down

0 comments on commit 2de81ba

Please sign in to comment.