Commit b9f90876 authored by Andrew Gerrand's avatar Andrew Gerrand

godoc: don't display navigation list with only 1 element

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/4547056
parent b790ae2e
......@@ -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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment