mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib/NSString APIs for String: allow a nil locale to be passed to
capitalizedStringWithLocale(_:) Swift SVN r18591
This commit is contained in:
@@ -290,7 +290,7 @@ extension String {
|
||||
|
||||
/// Returns a capitalized representation of the `String`
|
||||
/// using the specified locale.
|
||||
func capitalizedStringWithLocale(locale: NSLocale) -> String{
|
||||
func capitalizedStringWithLocale(locale: NSLocale?) -> String{
|
||||
return _ns.capitalizedStringWithLocale(locale) as String
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user