Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit bd178d8

Browse files
committed
Issue #75: fix default hint for non-string values
1 parent c30141c commit bd178d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

console/survey.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func (q *Question) defaultHint() string {
106106
if q.Defaulter == nil {
107107
return ""
108108
}
109-
return fmt.Sprintf(" [%s]", q.Defaulter())
109+
return fmt.Sprintf(" [%v]", q.Defaulter())
110110
}
111111

112112
func (q *Question) obtain(s *bufio.Scanner) (interface{}, error) {

0 commit comments

Comments
 (0)