aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorBruce Wells <brucekwells@gmail.com>2023-07-10 23:36:57 +0300
committerGitHub <noreply@github.com>2023-07-10 23:36:57 +0300
commit2a65673caea7be6766a20bf377490b5b6ece0276 (patch)
treef483b4845f23581a188cd276d279b743e32e94c4 /README.md
parente1cca194c57cf242fd8635b2e72e11e990279c95 (diff)
Composer updates (#126)
* Correct average typo * Update to PHP CS FIxer V3.21
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index ea390aa..d84fd17 100644
--- a/README.md
+++ b/README.md
@@ -97,9 +97,9 @@ $executor->calculate('round(17.119, 2)'); // 17.12
```
Variable number of parameters:
```php
-$executor->addFunction('avarage', function(...$args) {return array_sum($args) / count($args);});
-$executor->calculate('avarage(1,3)'); // 2
-$executor->calculate('avarage(1, 3, 4, 8)'); // 4
+$executor->addFunction('average', function(...$args) {return array_sum($args) / count($args);});
+$executor->calculate('average(1,3)'); // 2
+$executor->calculate('average(1, 3, 4, 8)'); // 4
```
## Operators: