stdlib: add first argument labels and some other changes to conform to API guidelines

This commit is contained in:
Dmitri Gribenko
2016-02-12 16:59:15 -08:00
parent a558d13a3b
commit efaa39ea79
132 changed files with 1653 additions and 1592 deletions

View File

@@ -2226,7 +2226,7 @@ func verifyThatStringIsOpaqueForCoreFoundation(nss: NSString) {
// itself and its copies should be resilient to CF's fast path functions,
// because Swift bridging may copy the string to ensure that it is not
// mutated.
let cfstring = unsafeBitCast(nss, CFString.self)
let cfstring = unsafeBitCast(nss, to: CFString.self)
assert(
CFStringGetCStringPtr(
cfstring, CFStringBuiltInEncodings.ASCII.rawValue) == nil)