mirror of
https://github.com/golang/go
synced 2024-11-11 23:20:24 -07:00
godoc: don't display navigation list with only 1 element
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/4547056
This commit is contained in:
parent
b790ae2efb
commit
b9f9087605
@ -104,7 +104,7 @@ function godocs_generateTOC() {
|
||||
}
|
||||
}
|
||||
|
||||
if (!toc_items.length) { return; }
|
||||
if (toc_items.length <= 1) { return; }
|
||||
|
||||
var dl1 = document.createElement('dl');
|
||||
var dl2 = document.createElement('dl');
|
||||
|
Loading…
Reference in New Issue
Block a user