aboutsummaryrefslogtreecommitdiff
path: root/internal/readpassword/read.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-02-12 13:55:15 +0100
committerJakob Unterwurzacher2017-02-12 13:55:30 +0100
commit2dd90ac19ce97544c412d90a24df0f68e66311db (patch)
tree850de0e847bd68385e638fa7ec137c9ea8f641a2 /internal/readpassword/read.go
parent1e9d7354069d2f619ca61f8427e2c8fc701249e3 (diff)
readpassword: improve comment on readPasswordStdin
Diffstat (limited to 'internal/readpassword/read.go')
-rw-r--r--internal/readpassword/read.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/readpassword/read.go b/internal/readpassword/read.go
index f00b425..49cf8ef 100644
--- a/internal/readpassword/read.go
+++ b/internal/readpassword/read.go
@@ -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)