File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Sources/DiffableTextStylesXNumeric/Models Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ let crash = UInt(Int.max).advanced(by: 1).formatted(.number)
1313
1414``` swift
1515let 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)
1717let crash = try ! style.parseStrategy .parse (style.format (123 ))
1818```
1919
Original file line number Diff line number Diff 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 //*========================================================================*
Original file line number Diff line number Diff 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//*============================================================================*
You can’t perform that action at this time.
0 commit comments