Fix "Template filter/function defaults" examples in 2022.6 release notes (#22945)

This commit is contained in:
Philip Allgaier 2022-06-01 16:37:46 +02:00 committed by GitHub
parent 276d116d79
commit ce98661081
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -435,9 +435,9 @@ Examples:
{% raw %}
- `{{ "abc" | float }}`: Will fail to render
- `{{ "abc" | float(default=5) }}`: Will render as -5, no warning will be logged
- `{{ "abc" | float(default=5) }}`: Will render as 5, no warning will be logged
- `{{ float("abc") }}`: Will fail to render
- `{{ float("abc", default=5) }}`: Will render as -5, no warning will be logged
- `{{ float("abc", default=5) }}`: Will render as 5, no warning will be logged
{% endraw %}