Skip to content

Commit 7fa5e4d

Browse files
authored
Reference: in(fold): reorder in and inFold
1 parent 3988ab2 commit 7fa5e4d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/docs/reference/templates/functions.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2221,21 +2221,21 @@ Places commas to separate groups of thousands in a number.
22212221

22222222
- `number`: the number to format. Must be an int or a string. Must be a whole number.
22232223

2224-
#### inFold
2224+
#### in
22252225

22262226
```yag
2227-
{{ $result := inFold <list> <value> }}
2227+
{{ $result := in <list> <value> }}
22282228
```
22292229

2230-
Same as [in](#in), but is case-insensitive. List can be a slice or string.
2230+
Returns whether the case-sensitive `value` is in the provided list. List can be a slice or string.
22312231

2232-
#### in
2232+
#### inFold
22332233

22342234
```yag
2235-
{{ $result := in <list> <value> }}
2235+
{{ $result := inFold <list> <value> }}
22362236
```
22372237

2238-
Returns whether the case-sensitive `value` is in the provided list. List can be a slice or string.
2238+
Same as [in](#in), but is case-insensitive. List can be a slice or string.
22392239

22402240
#### index
22412241

0 commit comments

Comments
 (0)