diff options
Diffstat (limited to 'src/pkg/template/format.go')
| -rw-r--r-- | src/pkg/template/format.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/template/format.go b/src/pkg/template/format.go index 21c11c659e..e79469e6f1 100644 --- a/src/pkg/template/format.go +++ b/src/pkg/template/format.go @@ -53,7 +53,7 @@ func HTMLEscape(w io.Writer, s []byte) { w.Write(esc); last = i + 1; } - w.Write(s[last:len(s)]); + w.Write(s[last:]); } // HTMLFormatter formats arbitrary values for HTML |
