Fix the incorrect description for NewInStream
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
This commit is contained in:
parent
8658748ef7
commit
90bddb4243
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue