com php-langspec: Fixed anonymous function creation example: spec/10-expressions.md

From: Date: Tue, 13 Dec 2016 20:28:53 +0000
Subject: com php-langspec: Fixed anonymous function creation example: spec/10-expressions.md
Groups: php.standards.cvs 
Request: Send a blank email to standards--cvs+get-376@lists.php.net to get a copy of this message
Commit: 4826bf652e62071d292f9c34d6503670eb2b4a40 Author: Serghei Iakovlev <sergeyklay@users.noreply.github.com> Tue, 13 Dec 2016 10:47:46 +0200 Committer: Nikita Popov <nikic@php.net> Tue, 13 Dec 2016 21:28:53 +0100 Parents: c7a8224f76da35e7cbec7c59995f00859e40cda1 Branches: master Link: http://git.php.net/?p=php-langspec.git;a=commitdiff;h=4826bf652e62071d292f9c34d6503670eb2b4a40 Log: Fixed anonymous function creation example Changed paths: M spec/10-expressions.md Diff: diff --git a/spec/10-expressions.md b/spec/10-expressions.md index 755f243..4660302 100644 --- a/spec/10-expressions.md +++ b/spec/10-expressions.md @@ -877,7 +877,7 @@ class C public function compute(array $values) { $count = 0; - $callback1 = function () use (&amp;$count) // has C as its scope + $callback1 = function () use (&$count) // has C as its scope { ++$count; //...

« previous php.standards.cvs (#376) next »