From b6fbe832ac559d7a75862cfc8ed695fc64fc7764 Mon Sep 17 00:00:00 2001 From: yuexiao-wang Date: Thu, 13 Oct 2016 19:35:10 +0800 Subject: [PATCH] Fix the incorrect description for NewInStream Signed-off-by: yuexiao-wang --- command/in.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/in.go b/command/in.go index c3ed70dc12..7204b7ad04 100644 --- a/command/in.go +++ b/command/in.go @@ -68,7 +68,7 @@ func (i *InStream) CheckTty(attachStdin, ttyMode bool) error { return nil } -// NewInStream returns a new OutStream object from a Writer +// NewInStream returns a new InStream object from a ReadCloser func NewInStream(in io.ReadCloser) *InStream { fd, isTerminal := term.GetFdInfo(in) return &InStream{in: in, fd: fd, isTerminal: isTerminal}