Skip to content

Commit bd66182

Browse files
Pushkar N Kulkarniphausler
authored andcommitted
Change the NSFormatter API to match the Darwin version (#396)
1 parent 8808f26 commit bd66182

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Foundation/NSByteCountFormatter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class ByteCountFormatter : Formatter {
5454
*/
5555
public class func string(fromByteCount byteCount: Int64, countStyle: ByteCountFormatter.CountStyle) -> String { NSUnimplemented() }
5656

57-
/* Convenience method on stringForObjectValue:. Convert a byte count into a string without creating an NSNumber.
57+
/* Convenience method on string(for:):. Convert a byte count into a string without creating an NSNumber.
5858
*/
5959
public func stringFromByteCount(_ byteCount: Int64) -> String { NSUnimplemented() }
6060

Foundation/NSPersonNameComponentsFormatter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class PersonNameComponentsFormatter : Formatter {
5858
*/
5959
public class func localizedString(from components: PersonNameComponents, style nameFormatStyle: Style, options nameOptions: Options = []) -> String { NSUnimplemented() }
6060

61-
/* Convenience method on stringForObjectValue:. Returns a string containing the formatted value of the provided components object.
61+
/* Convenience method on string(for:):. Returns a string containing the formatted value of the provided components object.
6262
*/
6363
public func string(from components: PersonNameComponents) -> String { NSUnimplemented() }
6464

0 commit comments

Comments
 (0)