Skip to content

Commit 0d9e8dd

Browse files
authored
docs: corrected substr templating example (#2519)
1 parent a927ffb commit 0d9e8dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/src/docs/reference/templating.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ tasks:
434434
- echo "{{.MESSAGE | lower}}" # "hello world"
435435
- echo "{{.NAME | trunc 4}}" # "john"
436436
- echo "{{"test" | repeat 3}}" # "testtesttest"
437-
- echo "{{substr .TEXT 0 5}}" # "Hello"
437+
- echo "{{.TEXT | substr 0 5}}" # "Hello"
438438
```
439439

440440
#### String Testing and Searching

0 commit comments

Comments
 (0)