Skip to content

Commit b419af3

Browse files
authored
content: Minor edits to collections functions
1 parent b12dd93 commit b419af3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

content/en/functions/collections/Apply.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ params:
1111
aliases: [/functions/apply]
1212
---
1313

14-
The `apply` function takes three or more arguments, depending on the function being applied to the collection elements.
14+
The `apply` function takes three or more arguments, depending on the function being applied to the slice elements.
1515

16-
The first argument is the collection itself, the second argument is the function name, and the remaining arguments are passed to the function, with the string `"."` representing the collection element.
16+
The first argument is the slice itself, the second argument is the function name, and the remaining arguments are passed to the function, with the string `"."` representing the slice element.
1717

1818
```go-html-template
1919
{{ $s := slice "hello" "world" }}

content/en/functions/collections/First.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ To use the `collections.First` function with a page collection:
3939
{{ end }}
4040
```
4141

42-
Set `N` to zero to return an empty collection:
42+
Set `N` to zero to return an empty slice:
4343

4444
```go-html-template
4545
{{ $emptyPageCollection := first 0 .Pages }}

content/en/functions/collections/Last.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ To use the `collections.Last` function with a page collection:
3939
{{ end }}
4040
```
4141

42-
Set `N` to zero to return an empty collection:
42+
Set `N` to zero to return an empty slice:
4343

4444
```go-html-template
4545
{{ $emptyPageCollection := last 0 .Pages }}

0 commit comments

Comments
 (0)