Fix documentation example for the indent function
We must use interpolation, using the %{} directive will trigger the following error "indent" is not a valid template control keyword
This commit is contained in:
parent
7bc75a1804
commit
8f42f0fa77
|
@ -26,7 +26,7 @@ This function is useful for inserting a multi-line string into an
|
||||||
already-indented context in another string:
|
already-indented context in another string:
|
||||||
|
|
||||||
```
|
```
|
||||||
> " items: %{indent(2, "[\n foo,\n bar,\n]\n")}"
|
> " items: ${indent(2, "[\n foo,\n bar,\n]\n")}"
|
||||||
items: [
|
items: [
|
||||||
foo,
|
foo,
|
||||||
bar,
|
bar,
|
||||||
|
|
Loading…
Reference in New Issue