Skip to content

Commit a8f83ef

Browse files
committed
Return a closure instead of using curried syntax
1 parent 5995ef2 commit a8f83ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/1_stdlib/NSStringAPI.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,8 +1395,8 @@ NSStringAPIs.test("stringByFoldingWithOptions(_:locale:)") {
13951395

13961396
func fwo(
13971397
s: String, _ options: NSStringCompareOptions
1398-
)(loc: NSLocale?) -> String {
1399-
return s.stringByFoldingWithOptions(options, locale: loc)
1398+
) -> (NSLocale?) -> String {
1399+
return { loc in s.stringByFoldingWithOptions(options, locale: loc) }
14001400
}
14011401

14021402
expectLocalizedEquality("abcd", fwo("abCD", .CaseInsensitiveSearch), "en")

0 commit comments

Comments
 (0)