Skip to content

Commit 8ea9b6d

Browse files
committed
Cleanup: NumericTextStyles/Number.
1 parent fb2b5ee commit 8ea9b6d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Sources/DiffableTextStylesXNumeric/Number/Number.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ import DiffableTextKit
3535
//=------------------------------------------------------------------------=
3636

3737
/// Parses the value represented by an **unformatted** sequence.
38-
///
39-
/// To use this method, all formatting characters must be marked as such.
40-
///
4138
@inlinable init<S>(characters: S, integer: Bool, unsigned: Bool,
4239
signs: [Character: Sign], digits: [Character: Digit], separators: [Character: Separator])
4340
throws where S: Sequence, S.Element == Character {
@@ -135,7 +132,7 @@ extension Number {
135132
// MARK: Separator
136133
//=------------------------------------------------------------------------=
137134

138-
/// It returns true if a suffixing separator was removed, otherwise it returns false.
135+
/// Returns true if a suffixing separator was removed, returns false otherwise.
139136
@inlinable @discardableResult mutating func removeSeparatorAsSuffix() -> Bool {
140137
if hasSeparatorAsSuffix { separator = nil; return true }; return false
141138
}
@@ -148,7 +145,7 @@ extension Number {
148145
//=--------------------------------------=
149146
// MARK: Integer
150147
//=--------------------------------------=
151-
self.integer.suffix(maxLength: min(max.integer, max.value))
148+
self.integer.suffix(maxLength: min(max.integer, max.value))
152149
self.integer.trimZerosPrefix()
153150
//=--------------------------------------=
154151
// MARK: Fraction

0 commit comments

Comments
 (0)