Skip to content

Commit 8c1e434

Browse files
authored
functions: add missing sort and printf call in syntax spec (#67)
* docs(functions): Add missing (sort) function in syntax documentation * docs(functions): Add missing (printf) function in syntax documentation Signed-off-by: Luca Zeuch <[email protected]>
1 parent a82009e commit 8c1e434

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/docs/reference/templates/functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,7 @@ the end.
17241724
#### printf
17251725

17261726
```yag
1727-
{{ $result := <format> <args...> }}
1727+
{{ $result := printf <format> <args...> }}
17281728
```
17291729

17301730
Interpolates `args...` according to `format`. See the [Go `fmt` package documentation](https://pkg.go.dev/fmt).
@@ -2402,7 +2402,7 @@ start index and the subslice extends to the end of `item`.
24022402
#### sort
24032403

24042404
```yag
2405-
{{ $sorted := <list> [options] }}
2405+
{{ $sorted := sort <list> [options] }}
24062406
```
24072407

24082408
Returns the given list in a sorted order. The list's items must all be of the same type. The optional `options` argument

0 commit comments

Comments
 (0)