Skip to content

Commit c91d954

Browse files
author
Kévin Gomez
committed
Fix errors spotted by Rusty
1 parent 914a781 commit c91d954

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

doc/custom_operators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $executor = new ArrayExecutor([
1919

2020
$executor->registerOperators([
2121
'logged' => function($user) {
22-
return return $user::CONNECTED === $user->getStatus();
22+
return $user::CONNECTED === $user->getStatus();
2323
},
2424
]);
2525
```

doc/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Getting started with RulerZ
66
The recommended way to install this library is with [Composer](http://getcomposer.org/):
77

88
```
9+
# ignore
910
composer require 'kphoen/rulerz'
1011
```
1112

doc/writing_rules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use RulerZ\Compiler\Target;
3434
use RulerZ\RulerZ;
3535

3636
// compiler
37-
$compiler = new Compiler::create();
37+
$compiler = Compiler::create();
3838

3939
// RulerZ engine
4040
$rulerz = new RulerZ(
@@ -84,4 +84,4 @@ you want to use. See the "[Custom operators](custom_operators.md)" section.
8484
Now that you can write rules, you can use them to [filter targets](filter.md)
8585
or to [check if a target satisfies them](satisfies.md).
8686

87-
[Return to the index to explore the other possibilities of the library](index.md)
87+
[Return to the index to explore the other possibilities of the library](index.md)

0 commit comments

Comments
 (0)