Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zmian committed Feb 12, 2024
1 parent d4b84b2 commit e002b08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extension NumberFormatter {
/// string.
/// - Returns: A string containing the formatted value of decimal number using
/// the receiver’s current settings.
public func string<Number: DoubleOrDecimalProtocol>(from number: Number?) -> String? {
public func string(from number: (some DoubleOrDecimalProtocol)?) -> String? {
guard let number else {
return nil
}
Expand Down

0 comments on commit e002b08

Please sign in to comment.