Skip to content

Commit

Permalink
fix: type name
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
  • Loading branch information
caarlos0 authored and meowgorithm committed Mar 30, 2022
1 parent 616c7a8 commit 66379bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions list/list.go
Expand Up @@ -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 {
Expand Down Expand Up @@ -135,7 +135,7 @@ type Model struct {
// Key mappings for navigating the list.
KeyMap KeyMap

Filter Filter
Filter FilterFunc

disableQuitKeybindings bool

Expand Down

0 comments on commit 66379bd

Please sign in to comment.