From 04d16f6064c7c71068f47b4e7106f15a05b6b326 Mon Sep 17 00:00:00 2001 From: Eyal Posener Date: Fri, 5 May 2017 21:59:10 +0300 Subject: Renamings --- complete.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'complete.go') diff --git a/complete.go b/complete.go index 6345e63..e7e209e 100644 --- a/complete.go +++ b/complete.go @@ -34,10 +34,10 @@ func (c *Completer) complete(args []string) []string { return c.chooseRelevant(last(args), all) } -func (c *Completer) chooseRelevant(last string, list []Option) (options []string) { - for _, sub := range list { - if sub.Matches(last) { - options = append(options, sub.String()) +func (c *Completer) chooseRelevant(last string, options []Option) (relevant []string) { + for _, option := range options { + if option.Matches(last) { + relevant = append(relevant, option.String()) } } return -- cgit v1.2.3