diff --git a/docs/chart_best_practices/templates.md b/docs/chart_best_practices/templates.md
index c9995ea0aaddbb5331fee7ee069449fda40897c8..7b21c5feac5985eeecea3a5320640deeb1f01273 100644
--- a/docs/chart_best_practices/templates.md
+++ b/docs/chart_best_practices/templates.md
@@ -155,7 +155,7 @@ Template comments should be used when documenting features of a template, such a
 ```yaml
 {{- /*
 mychart.shortname provides a 6 char truncated version of the release name.
-*/ }}
+*/ -}}
 {{ define "mychart.shortname" -}}
 {{ .Release.Name | trunc 6 }}
 {{- end -}}