summaryrefslogtreecommitdiff
path: root/src/cmd/godoc/format.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/godoc/format.go')
-rw-r--r--src/cmd/godoc/format.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/godoc/format.go b/src/cmd/godoc/format.go
index da1466b21..7e6470846 100644
--- a/src/cmd/godoc/format.go
+++ b/src/cmd/godoc/format.go
@@ -292,7 +292,7 @@ func rangeSelection(str string) Selection {
from, _ := strconv.Atoi(m[1])
to, _ := strconv.Atoi(m[2])
if from < to {
- return makeSelection([][]int{[]int{from, to}})
+ return makeSelection([][]int{{from, to}})
}
}
return nil
@@ -309,7 +309,7 @@ func rangeSelection(str string) Selection {
//
var startTags = [][]byte{
/* 000 */ []byte(``),
- /* 001 */ []byte(`<span class ="comment">`),
+ /* 001 */ []byte(`<span class="comment">`),
/* 010 */ []byte(`<span class="highlight">`),
/* 011 */ []byte(`<span class="highlight-comment">`),
/* 100 */ []byte(`<span class="selection">`),