Merge pull request #1111 from pushkarnk/improve-descriptions
diff --git a/Foundation/NSJSONSerialization.swift b/Foundation/NSJSONSerialization.swift
index 6bbf91c..13e639e 100644
--- a/Foundation/NSJSONSerialization.swift
+++ b/Foundation/NSJSONSerialization.swift
@@ -533,7 +533,7 @@
}
let options: NSString.CompareOptions = [.numeric, .caseInsensitive, .forcedOrdering]
let range: Range<String.Index> = a.startIndex..<a.endIndex
- let locale = NSLocale.systemLocale()
+ let locale = NSLocale.system
return a.compare(b, options: options, range: range, locale: locale) == .orderedAscending
})
diff --git a/Foundation/NSLocale.swift b/Foundation/NSLocale.swift
index 266f377..4b1b44f 100644
--- a/Foundation/NSLocale.swift
+++ b/Foundation/NSLocale.swift
@@ -84,7 +84,7 @@
return CFLocaleCopyCurrent()._swiftObject
}
- open class func systemLocale() -> Locale {
+ open class var system: Locale {
return CFLocaleGetSystem()._swiftObject
}
}