Skip to content

Commit 47171d5

Browse files
committed
Cleanup.
1 parent cb40314 commit 47171d5

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Sources/DiffableTextStylesXNumeric/Scheme+Currency.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Foundation
1515
//*============================================================================*
1616

1717
@usableFromInline final class NumericTextSchemeXCurrency: Schemes.Reuseable {
18-
@usableFromInline static let cache = Cache<ID, NumericTextSchemeXCurrency>(33)
18+
@usableFromInline static let cache = Cache<ID, NumericTextSchemeXCurrency>(32)
1919

2020
//=------------------------------------------------------------------------=
2121
// MARK: State
@@ -24,7 +24,7 @@ import Foundation
2424
@usableFromInline let id: ID
2525
@usableFromInline let lexicon: Lexicon
2626
@usableFromInline let preferences: Preferences
27-
@usableFromInline let instruction: Instruction?
27+
@usableFromInline let adjustments: Adjustments?
2828

2929
//=------------------------------------------------------------------------=
3030
// MARK: Initializers
@@ -46,7 +46,7 @@ import Foundation
4646
formatter.numberStyle = .currency
4747
self.preferences = Preferences(formatter)
4848
formatter.maximumFractionDigits = .zero
49-
self.instruction = Instruction(formatter, lexicon)
49+
self.adjustments = Adjustments(formatter, lexicon)
5050
}
5151

5252
//=------------------------------------------------------------------------=
@@ -105,16 +105,16 @@ import Foundation
105105
}
106106

107107
//*========================================================================*
108-
// MARK: * Instruction
108+
// MARK: * Adjustments
109109
//*========================================================================*
110110

111111
/// A model for marking currency labels as virtual.
112112
///
113113
/// Characters used to express currencies are usually disjoint
114114
/// from characters used to express amounts, but sometimes they overlap.
115-
/// This instruction is used to efficiently mark currency labels when needed.
115+
/// This model is used to mark currency labels as virtual when needed.
116116
///
117-
@usableFromInline struct Instruction {
117+
@usableFromInline struct Adjustments {
118118

119119
//=--------------------------------------------------------------------=
120120
// MARK: State
@@ -177,7 +177,7 @@ extension NumericTextSchemeXCurrency {
177177
//=------------------------------------------------------------------------=
178178

179179
@inlinable func autocorrect(_ snapshot: inout Snapshot) {
180-
instruction?.autocorrect(&snapshot)
180+
adjustments?.autocorrect(&snapshot)
181181
}
182182

183183
//=------------------------------------------------------------------------=

Sources/DiffableTextStylesXNumeric/Scheme+Standard.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Foundation
1515
//*============================================================================*
1616

1717
@usableFromInline final class NumericTextSchemeXStandard: Schemes.Reuseable {
18-
@usableFromInline static let cache = Cache<ID, NumericTextSchemeXStandard>(33)
18+
@usableFromInline static let cache = Cache<ID, NumericTextSchemeXStandard>(32)
1919

2020
//=------------------------------------------------------------------------=
2121
// MARK: State

Sources/DiffableTextViewsXiOS/Helpers/&NSTextAlignment.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ extension NSTextAlignment {
2424

2525
@inlinable init(_ alignment: TextAlignment, for layout: UIUserInterfaceLayoutDirection) {
2626
switch alignment {
27-
case .leading: self = .adaptive(layout, leftToRight: .left, rightToLeft: .right)
28-
case .trailing: self = .adaptive(layout, leftToRight: .right, rightToLeft: .left)
29-
case .center: self = .center
27+
case .leading: self = .adaptive(layout, leftToRight: .left, rightToLeft: .right)
28+
case .trailing: self = .adaptive(layout, leftToRight: .right, rightToLeft: .left)
29+
case .center: self = .center
3030
}
3131
}
3232

0 commit comments

Comments
 (0)