diff options
author | Emil Ernerfeldt <emil.ernerfeldt@gmail.com> | 2024-09-26 09:43:27 +0200 |
---|---|---|
committer | Emil Ernerfeldt <emil.ernerfeldt@gmail.com> | 2024-09-26 09:43:27 +0200 |
commit | 92adfa57dc247d9d25286e1bdb439e48079ea710 (patch) | |
tree | 8542700ed7e16fa6b2411cc0c37cda82daece17c | |
parent | a59e178131461126ecd09888c56bce8d57f62e66 (diff) |
Improve comment in text layout code
-rw-r--r-- | crates/epaint/src/text/text_layout.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/epaint/src/text/text_layout.rs b/crates/epaint/src/text/text_layout.rs index caf14612..9db77f88 100644 --- a/crates/epaint/src/text/text_layout.rs +++ b/crates/epaint/src/text/text_layout.rs @@ -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(); } } |