Skip to content

Commit

Permalink
docs: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dlvhdr committed Nov 23, 2024
1 parent bebe0ed commit a4e4bf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tree/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ func (t *Tree) EnumeratorStyle(style lipgloss.Style) *Tree {
return t
}

// IndenterStyleFunc sets the indentation style function. Use this function
// EnumeratorStyleFunc sets the enumeration style function. Use this function
// for conditional styling.
//
// t := tree.New().
// IndenterStyleFunc(func(_ tree.Children, i int) lipgloss.Style {
// EnumeratorStyleFunc(func(_ tree.Children, i int) lipgloss.Style {
// if selected == i {
// return lipgloss.NewStyle().Foreground(hightlightColor)
// }
Expand Down

0 comments on commit a4e4bf8

Please sign in to comment.