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:
Nicolas Vogel 2020-08-10 11:45:28 +02:00 committed by GitHub
parent 7bc75a1804
commit 8f42f0fa77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,