File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Sources/DiffableTextKit/Styles Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public struct PrefixTextStyle<Base: DiffableTextStyle>: WrapperTextStyle {
6565
6666 /// This transformation assumes that the base style
6767 /// provides a manual selection when all attributes
68- /// are passtrough, to avoid duplicate computations.
68+ /// are passthrough to avoid duplicate computations.
6969 @inlinable func label( _ snapshot: inout Snapshot ) {
7070 //=--------------------------------------=
7171 // None
@@ -94,7 +94,7 @@ public struct PrefixTextStyle<Base: DiffableTextStyle>: WrapperTextStyle {
9494
9595 let lower = snapshot. index ( snapshot. startIndex, offsetBy: min)
9696 let upper = snapshot. index ( lower, /*---*/ offsetBy: max - min)
97- snapshot. select ( Range ( uncheckedBounds : ( lower, upper) ) ) /*--*/
97+ snapshot. selection = Selection . init ( unchecked : ( lower, upper) )
9898 }
9999}
100100
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public struct SuffixTextStyle<Base: DiffableTextStyle>: WrapperTextStyle {
6161
6262 /// This transformation assumes that the base style
6363 /// provides a manual selection when all attributes
64- /// are passtrough, to avoid duplicate computations.
64+ /// are passthrough to avoid duplicate computations.
6565 @inlinable func label( _ snapshot: inout Snapshot ) {
6666 //=--------------------------------------=
6767 // Base x None
You can’t perform that action at this time.
0 commit comments