Merge pull request #731 from ken0nek/add-spaces-before-and-after-arrow

Add spaces before and after closure arrow
This commit is contained in:
Dmitri Gribenko
2015-12-23 10:53:22 -08:00
97 changed files with 322 additions and 322 deletions

View File

@@ -259,9 +259,9 @@ NSStringAPIs.test("localizedCapitalizedString") {
/// executed in the given localeID
func expectLocalizedEquality(
expected: String,
_ op: (_: NSLocale?)->String,
_ op: (_: NSLocale?) -> String,
_ localeID: String? = nil,
@autoclosure _ message: ()->String = "",
@autoclosure _ message: () -> String = "",
showFrame: Bool = true,
stackTrace: SourceLocStack = SourceLocStack(),
file: String = __FILE__, line: UInt = __LINE__
@@ -2143,7 +2143,7 @@ func getNullCString() -> UnsafeMutablePointer<CChar> {
return nil
}
func getASCIICString() -> (UnsafeMutablePointer<CChar>, dealloc: ()->()) {
func getASCIICString() -> (UnsafeMutablePointer<CChar>, dealloc: () -> ()) {
let up = UnsafeMutablePointer<CChar>.alloc(100)
up[0] = 0x61
up[1] = 0x62
@@ -2151,7 +2151,7 @@ func getASCIICString() -> (UnsafeMutablePointer<CChar>, dealloc: ()->()) {
return (up, { up.dealloc(100) })
}
func getNonASCIICString() -> (UnsafeMutablePointer<CChar>, dealloc: ()->()) {
func getNonASCIICString() -> (UnsafeMutablePointer<CChar>, dealloc: () -> ()) {
let up = UnsafeMutablePointer<UInt8>.alloc(100)
up[0] = 0xd0
up[1] = 0xb0
@@ -2162,7 +2162,7 @@ func getNonASCIICString() -> (UnsafeMutablePointer<CChar>, dealloc: ()->()) {
}
func getIllFormedUTF8String1(
) -> (UnsafeMutablePointer<CChar>, dealloc: ()->()) {
) -> (UnsafeMutablePointer<CChar>, dealloc: () -> ()) {
let up = UnsafeMutablePointer<UInt8>.alloc(100)
up[0] = 0x41
up[1] = 0xed
@@ -2174,7 +2174,7 @@ func getIllFormedUTF8String1(
}
func getIllFormedUTF8String2(
) -> (UnsafeMutablePointer<CChar>, dealloc: ()->()) {
) -> (UnsafeMutablePointer<CChar>, dealloc: () -> ()) {
let up = UnsafeMutablePointer<UInt8>.alloc(100)
up[0] = 0x41
up[1] = 0xed