Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring authored Mar 9, 2024
1 parent c4611ea commit 1f522e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/templates/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ Use `:=` to initialize a variable, and use `=` to assign a value to a variable t
{{ range slice 7 11 21 }}
{{ $total = add $total . }}
{{ end }}
{{ $v1 }} → 42
{{ $total }} → 42
```

Variables initialized inside of an `if`, `range`, or `with` block are scoped to the block. Variables initialized outside of these blocks are scoped to the template.
Expand Down

0 comments on commit 1f522e3

Please sign in to comment.