Update the `len` function's description

This commit is contained in:
Elara 2023-12-18 01:01:34 +00:00
parent 01047706b6
commit 74b4607c63
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ Functions used in a template can accept any number of arguments but are limited
Salix includes several useful global functions in all templates:
- `len(v any) int`: Returns the length of the value passed in. If the length cannot be found, it returns `-1`.
- `len(v any) int`: Returns the length of the value passed in. If the length can't be found for the value passed in, it returns an error.
- `toUpper(s string) string`: Returns `s`, but with all characters mapped to their uppercase equivalents.
- `toLower(s string) string`: Returns `s`, but with all characters mapped to their lowercase equivalents.
- `hasPrefix(s, prefix string) bool`: Returns true if `s` starts with `prefix`.