From cf1fe5f9ce5e30c22ce21a28f8b0ef3c33912ef8 Mon Sep 17 00:00:00 2001 From: Carlos A Becker Date: Fri, 21 Jan 2022 14:47:12 -0300 Subject: [PATCH] fix: type name Signed-off-by: Carlos A Becker --- list/list.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/list/list.go b/list/list.go index a971488..9b03bfd 100644 --- a/list/list.go +++ b/list/list.go @@ -71,10 +71,10 @@ func (f filteredItems) items() []Item { // message should be routed to Update for processing. type FilterMatchesMsg []filteredItem -// Filter takes a term and a list of strings to search through +// FilterFunc takes a term and a list of strings to search through // (defined by Item#FilterValue). // It should return a sorted list of ranks. -type Filter func(string, []string) []Rank +type FilterFunc func(string, []string) []Rank // Rank defines a rank for a given item. type Rank struct { @@ -135,7 +135,7 @@ type Model struct { // Key mappings for navigating the list. KeyMap KeyMap - Filter Filter + Filter FilterFunc disableQuitKeybindings bool