aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/README.md b/README.md
index 498d409..c665575 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@ composer require nxp/math-executor
## Sample usage:
```php
-use NXP\MathExecutor;require 'vendor/autoload.php';
+use NXP\MathExecutor;
$executor = new MathExecutor();
@@ -84,7 +84,9 @@ Default operators: `+ - * / ^`
Add custom operator to executor:
```php
-use NXP\Classes\Operator;$executor->addOperator(new Operator(
+use NXP\Classes\Operator;
+
+$executor->addOperator(new Operator(
'%', // Operator sign
false, // Is right associated operator
170, // Operator priority