summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-01-16 14:03:28 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-01-16 14:03:28 +0100
commit6bb7e511e305c02a8dabec7b2d51db93b9877468 (patch)
tree98afa68bf790a4bb515a2a33952f802a9c15be80 /documentation
parented34e7ce363c2a29cc807a840cfbe08cfa0f897f (diff)
fixed typos in lambda function documentation
Diffstat (limited to 'documentation')
-rw-r--r--documentation/lambda-functions.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/documentation/lambda-functions.html b/documentation/lambda-functions.html
index 4a5a8f4..51fd5a6 100644
--- a/documentation/lambda-functions.html
+++ b/documentation/lambda-functions.html
@@ -119,7 +119,7 @@ function my_array_map($array, $callback) {
// done
return $result;
}
-&lt;?&gt;
+?&gt;
</code></pre>
</p>
<p>
@@ -134,7 +134,7 @@ function my_array_map($array, $callback) {
void run_test()
{
// create the anonymous function
- Php::Function multiply_by_two([](Php::Parameters &amp;params) -> Php::Value) {
+ Php::Function multiply_by_two([](Php::Parameters &amp;params) -> Php::Value {
// make sure the function was really called with at least one parameter
if (params.size() == 0) return nullptr;
@@ -143,7 +143,7 @@ void run_test()
Php::Value param = params[0];
// multiple the parameter by two
- return params * 2;
+ return param * 2;
});
// the function now is callable