Skip to content

Commit

Permalink
Fix the signature for substr (#6236)
Browse files Browse the repository at this point in the history
  • Loading branch information
izrik committed May 26, 2022
1 parent 65c6e25 commit eedfcd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sources/logql/template_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:]
Expand Down

0 comments on commit eedfcd5

Please sign in to comment.