Improve comment in text layout code

This commit is contained in:
Emil Ernerfeldt 2024-09-26 09:43:27 +02:00
parent a59e178131
commit 92adfa57dc
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}
}