From 6bb7e511e305c02a8dabec7b2d51db93b9877468 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Fri, 16 Jan 2015 14:03:28 +0100 Subject: fixed typos in lambda function documentation --- documentation/lambda-functions.html | 6 +++--- 1 file 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; } -<?> +?>

@@ -134,7 +134,7 @@ function my_array_map($array, $callback) { void run_test() { // create the anonymous function - Php::Function multiply_by_two([](Php::Parameters &params) -> Php::Value) { + Php::Function multiply_by_two([](Php::Parameters &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 -- cgit v1.2.3