diff --git a/docs/sources/logql/template_functions.md b/docs/sources/logql/template_functions.md index 9ed5784b52ff..877359d9dfb4 100644 --- a/docs/sources/logql/template_functions.md +++ b/docs/sources/logql/template_functions.md @@ -220,7 +220,7 @@ Get a substring from a string. Signature: -`trunc(start int,end int,value string) string` +`substr(start int,end int,value string) string` If start is < 0, this calls value[:end]. If start is >= 0 and end < 0 or end bigger than s length, this calls value[start:]