Merge pull request #852 from tit/patch-1

Fix typo
This commit is contained in:
rivo 2023-05-25 09:34:30 +02:00 committed by GitHub
commit 4a1f85bb22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ func (m *Modal) SetButtonTextColor(color tcell.Color) *Modal {
// SetDoneFunc sets a handler which is called when one of the buttons was
// pressed. It receives the index of the button as well as its label text. The
// handler is also called when the user presses the Escape key. The index will
// then be negative and the label text an emptry string.
// then be negative and the label text an empty string.
func (m *Modal) SetDoneFunc(handler func(buttonIndex int, buttonLabel string)) *Modal {
m.done = handler
return m