[#1004] fix: change the method doc comment

This commit is contained in:
Alexey Savchuk 2024-08-04 17:00:24 +03:00
parent 0f4bf9609c
commit 799e99ce22
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -450,8 +450,8 @@ func (t *TreeView) SetSelectedFunc(handler func(node *TreeNode)) *TreeView {
return t return t
} }
// GetSelectedFunc returns the function set with SetSelectedFunc() or nil // GetSelectedFunc returns the function set with [TreeView.SetSelectedFunc]
// if no such function has been set. // or nil if no such function has been set.
func (t *TreeView) GetSelectedFunc() func(node *TreeNode) { func (t *TreeView) GetSelectedFunc() func(node *TreeNode) {
return t.selected return t.selected
} }