From 74b4607c6392f0dae5e63f38a735c398e2325b8c Mon Sep 17 00:00:00 2001 From: Elara Date: Mon, 18 Dec 2023 01:01:34 +0000 Subject: [PATCH] Update the `len` function's description --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4666a51..fdca171 100644 --- a/README.md +++ b/README.md @@ -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`.