summaryrefslogtreecommitdiffstats
path: root/pkg/cheatsheet/generate.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/cheatsheet/generate.go')
-rw-r--r--pkg/cheatsheet/generate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/cheatsheet/generate.go b/pkg/cheatsheet/generate.go
index 804cb6b45..c7c2b0d37 100644
--- a/pkg/cheatsheet/generate.go
+++ b/pkg/cheatsheet/generate.go
@@ -174,7 +174,7 @@ outer:
bindings []*types.Binding
}
- groupedBindings := make([]groupedBindingsType, len(contextAndViewBindingMap))
+ groupedBindings := make([]groupedBindingsType, 0, len(contextAndViewBindingMap))
for contextAndView, contextBindings := range contextAndViewBindingMap {
groupedBindings = append(groupedBindings, groupedBindingsType{contextAndView: contextAndView, bindings: contextBindings})