Skip to content

Commit 29f0872

Browse files
authored
Frame closures less in terms of Obj-C and C blocks (#213)
Fixes: rdar://118579466
2 parents 1443e53 + f1b1dec commit 29f0872

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

TSPL.docc/LanguageGuide/Closures.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ Group code that executes together, without creating a named function.
44

55
*Closures* are self-contained blocks of functionality
66
that can be passed around and used in your code.
7-
Closures in Swift are similar to blocks in C and Objective-C
8-
and to lambdas in other programming languages.
7+
Closures in Swift are similar
8+
to closures, anonymous functions, lambdas, and blocks
9+
in other programming languages.
910

1011
Closures can capture and store references to any constants and variables
1112
from the context in which they're defined.

0 commit comments

Comments
 (0)