Fix example in merge.md

This commit is contained in:
Salim B 2021-03-29 05:30:55 +00:00 committed by Bjørn Erik Pedersen
parent f275ab778b
commit edcf5e3fc5

View File

@ -20,8 +20,8 @@ Key handling is case-insensitive.
An example merging two maps.
```go-html-template
{{ $default_params := dict "color" "blue" "width" "50%" "height" "25%" }}
{{ $user_params := dict "color" "red" "extra" (dict "duration" 2) }}
{{ $default_params := dict "color" "blue" "width" "50%" "height" "25%" "icon" "star" }}
{{ $user_params := dict "color" "red" "icon" "mail" "extra" (dict "duration" 2) }}
{{ $params := merge $default_params $user_params }}
```