Explorar o código

console: remove comment about 'invalid' input (#15735)

All inputs are saved into history, including 'invalid' inputs.
Richard Hart %!s(int64=7) %!d(string=hai) anos
pai
achega
72e70bcec2
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      console/prompter.go

+ 1 - 2
console/prompter.go

@@ -155,8 +155,7 @@ func (p *terminalPrompter) SetHistory(history []string) {
 	p.State.ReadHistory(strings.NewReader(strings.Join(history, "\n")))
 }
 
-// AppendHistory appends an entry to the scrollback history. It should be called
-// if and only if the prompt to append was a valid command.
+// AppendHistory appends an entry to the scrollback history.
 func (p *terminalPrompter) AppendHistory(command string) {
 	p.State.AppendHistory(command)
 }