diff options
author | Andrew Gerrand <adg@golang.org> | 2011-05-20 14:26:00 +1000 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2011-05-20 14:26:00 +1000 |
commit | b9f90876051425b4effe93098dc1562c40553839 (patch) | |
tree | 28ef353cff932a82e98fea2472e28f2d08244999 | |
parent | b790ae2efbf27b10634640850b8792453a7fce98 (diff) | |
download | go-b9f90876051425b4effe93098dc1562c40553839.tar.gz go-b9f90876051425b4effe93098dc1562c40553839.zip |
godoc: don't display navigation list with only 1 element
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/4547056
-rw-r--r-- | doc/godocs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/godocs.js b/doc/godocs.js index 20ee36350d..946c4c39fd 100644 --- a/doc/godocs.js +++ b/doc/godocs.js @@ -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'); |