Skip to content

Commit 8e0d306

Browse files
committed
Cleanup: NumericTextStyles/Scheme, notes.
1 parent e1aa4e0 commit 8e0d306

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Notes/SwiftIssuesList.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let crash = UInt(Int.max).advanced(by: 1).formatted(.number)
1313

1414
```swift
1515
let code = "SEK"; let locale = Locale(identifier: "en_US")
16-
let style = IntegerFormatStyle<Int>.Currency(code: code).locale(locale)
16+
let style = IntegerFormatStyle<Int>.Currency(code: code, locale: locale)
1717
let crash = try! style.parseStrategy.parse(style.format(123))
1818
```
1919

Sources/DiffableTextStylesXNumeric/Models/Scheme+Standard.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ import Foundation
5454
reuse(ID(format.locale))
5555
}
5656

57-
//=------------------------------------------------------------------------=
58-
// MARK: Autocorrect
59-
//=------------------------------------------------------------------------=
60-
61-
@inlinable public func autocorrect(_ snapshot: inout Snapshot) { }
62-
6357
//*========================================================================*
6458
// MARK: * ID
6559
//*========================================================================*

Sources/DiffableTextStylesXNumeric/Models/Scheme.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ extension NumericTextScheme {
8484
@inlinable func precision<T>(_ value: T.Type) -> Precision<T> where T: Value {
8585
Precision()
8686
}
87+
88+
//=------------------------------------------------------------------------=
89+
// MARK: Autocorrect
90+
//=------------------------------------------------------------------------=
91+
92+
@inlinable func autocorrect(_ snapshot: inout Snapshot) { }
8793
}
8894

8995
//*============================================================================*

0 commit comments

Comments
 (0)