diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-02-06 22:53:59 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-02-06 22:53:59 +0100 |
commit | 7c3dceeaedada1f4e7650864d8e23044c6129e46 (patch) | |
tree | 67a7071ce508f18de1af6f1ee072f0d2f143f754 /hugolib/menu.go | |
parent | a95426d40cf74d87fab793daf1aef375243bfb89 (diff) |
Fix buggy Menu.Limit()
Diffstat (limited to 'hugolib/menu.go')
-rw-r--r-- | hugolib/menu.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/menu.go b/hugolib/menu.go index 4e3970fda..2e2670b34 100644 --- a/hugolib/menu.go +++ b/hugolib/menu.go @@ -157,7 +157,7 @@ func (m Menu) Sort() { } func (m Menu) Limit(n int) Menu { - if len(m) < n { + if len(m) > n { return m[0:n] } return m |