Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

Commit

Permalink
Fix / tidy comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-clayton committed Mar 21, 2015
1 parent 11ec676 commit 8582ede
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion filtered_list_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type FilteredListAdapter struct {
}

func (a *FilteredListAdapter) SetItems(items []FilteredListItem) {
// Clone, as we can mutate the order
// Clone, as the order can be mutated
a.items = append([]FilteredListItem{}, items...)
a.DefaultAdapter.SetItems(a.items)
}
Expand Down
2 changes: 1 addition & 1 deletion samples/lists/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (a *customAdapter) Count() int {
}

func (a *customAdapter) ItemAt(index int) gxui.AdapterItem {
return index // This adapter stores integer indices the items
return index // This adapter uses integer indices as AdapterItems
}

func (a *customAdapter) ItemIndex(item gxui.AdapterItem) int {
Expand Down

0 comments on commit 8582ede

Please sign in to comment.