Skip to content

Commit 3c8af6f

Browse files
committed
Fix legacy query execution method
1 parent 06d55cd commit 3c8af6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/5.x/reference/twig/filters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,8 +1568,8 @@ This can be useful to prevent typographic [widows and orphans](https://en.wikipe
15681568
Returns an array without the specified item(s).
15691569

15701570
```twig
1571-
{% set entries = craft.entries().section('articles').limit(3).find %}
1572-
{% set firstEntry = entries[0] %}
1571+
{% set entries = craft.entries().section('articles').limit(3).all() %}
1572+
{% set firstEntry = entries|first %}
15731573
{% set remainingEntries = entries|without(firstEntry) %}
15741574
```
15751575

0 commit comments

Comments
 (0)