Skip to content

Commit 8712f8e

Browse files
committed
update func signature to use Callback
1 parent 4b15a4f commit 8712f8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rtprompt.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type Prompt struct {
5454
}
5555

5656
// New prompt instance w/ sane defaults
57-
func New(pfx string, callback func(string, bool, bool) string) *Prompt {
57+
func New(pfx string, callback Callback) *Prompt {
5858
return &Prompt{
5959
Prefix: pfx,
6060
Callback: callback,

0 commit comments

Comments
 (0)