Skip to content

Commit fad4ea4

Browse files
committed
Grammar
1 parent 8692f41 commit fad4ea4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/CodeEditTextView/TextLayoutManager/TextLayoutManager+Layout.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ extension TextLayoutManager {
2727
/// The thing that makes this layout method so fast is the second point, checking if a line needs layout. To
2828
/// determine if a line needs a layout pass, the layout manager can check three things:
2929
/// - **1** Was the line laid out under the assumption of a different maximum layout width?
30-
/// Eg: If wrapping is toggled, and a line was initially long but now needs to be broken, this triggers that
31-
/// layout pass.
30+
/// For instance, if a line was previously broken by the line wrapping setting, it won’t need to wrap once the
31+
/// line wrapping is disabled. This will detect that, and cause the lines to be recalculated.
3232
/// - **2** Was the line previously not visible? This is determined by keeping a set of visible line IDs. If the
3333
/// line does not appear in that set, we can assume it was previously off screen and may need layout.
3434
/// - **3** Was the line entirely laid out? We break up lines into line fragments. When we do layout, we determine

0 commit comments

Comments
 (0)