readpassword: improve comment on readPasswordStdin

This commit is contained in:
Jakob Unterwurzacher 2017-02-12 13:55:15 +01:00
parent 1e9d735406
commit 2dd90ac19c
1 changed files with 2 additions and 2 deletions

View File

@ -66,8 +66,8 @@ func readPasswordTerminal(prompt string) string {
return string(p)
}
// readPasswordStdin reads a line from stdin
// Exits on read error or empty result.
// readPasswordStdin reads a line from stdin.
// It exits with a fatal error on read error or empty result.
func readPasswordStdin() string {
tlog.Info.Println("Reading password from stdin")
p := readLineUnbuffered(os.Stdin)