Skip to content

Commit 5caa07d

Browse files
authored
Merge pull request #66 from lpd-au/spec-anonymous-function
Use term closure consistently
2 parents a6cf20a + 1260569 commit 5caa07d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ Foo::bar($arg2, $arg3);
715715
Argument lists MAY be split across multiple lines, where each subsequent line
716716
is indented once. When doing so, the first item in the list MUST be on the
717717
next line, and there MUST be only one argument per line. A single argument being
718-
split across multiple lines (as might be the case with an anonymous function or
718+
split across multiple lines (as might be the case with a closure or
719719
array) does not constitute splitting the argument list itself.
720720

721721
The following examples show correct argument usage.
@@ -1069,8 +1069,8 @@ $variable = $foo ?: 'bar';
10691069

10701070
## 7. Closures
10711071

1072-
Closures MUST be declared with a space after the `function` keyword, and a
1073-
space before and after the `use` keyword.
1072+
Closures, also known as anonymous functions, MUST be declared with a space
1073+
after the `function` keyword, and a space before and after the `use` keyword.
10741074

10751075
The opening brace MUST go on the same line, and the closing brace MUST go on
10761076
the next line following the body.

0 commit comments

Comments
 (0)