Skip to content

Commit 0a6b045

Browse files
committed
README fix.
1 parent 8ea8800 commit 0a6b045

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ use Smoren\ArrayView\Selectors\MaskSelector;
8888
use Smoren\ArrayView\Selectors\SliceSelector;
8989
use Smoren\ArrayView\Views\ArrayView;
9090

91-
const $originalArray = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
91+
$originalArray = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
9292

93-
const $subview = ArrayView::toView(originalArray)
93+
$subview = ArrayView::toView(originalArray)
9494
->subview('::2') // [1, 3, 5, 7, 9]
9595
->subview(new MaskSelector([true, false, true, true, true])) // [1, 5, 7, 9]
9696
->subview(new IndexListSelector([0, 1, 2])) // [1, 5, 7]

0 commit comments

Comments
 (0)