Skip to content

Commit d608748

Browse files
committed
typos n' stuff
1 parent a71cf1e commit d608748

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/DiffableTextKit/Styles/Prefix.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

Sources/DiffableTextKit/Styles/Suffix.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)