From 5c01f5dd264c8fa47ab229a9df0e6a22ee483c0b Mon Sep 17 00:00:00 2001 From: TIT Date: Thu, 25 May 2023 00:33:20 +0300 Subject: [PATCH] Fix typo --- modal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modal.go b/modal.go index 3098f3c..80d60ed 100644 --- a/modal.go +++ b/modal.go @@ -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