mirror of https://github.com/grafana/loki
Update contains and hasPrefix/hasSuffix with the correct examples (#8929)
**What this PR does / why we need it**:
WHAT:
- Update examples for `contains` and `hasSuffix`
- Correct order should be `functionName arg1 arg2 argN`, eg. `contains s
src`
WHY:
- Current example for `contains` and `hasPrefix` / `hasSuffix` has a
wrong order that will cause `TemplateFormatErr`.
- Examples I'm referring to `{{ if .err hasSuffix "Timeout" }} timeout
{{end}}`
**Checklist**
- [ ] Reviewed the
[`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md)
guide (**required**)
- [ ] Documentation added
- [ ] Tests updated
- [ ] `CHANGELOG.md` updated
- [ ] Changes that require user attention or interaction to upgrade are
documented in `docs/sources/upgrading/_index.md`
pull/8968/head^2
parent
9efbd5ca45
commit
f3a49f4734
Loading…
Reference in new issue