mirror of https://github.com/docker/cli.git
Merge pull request #27338 from yuexiao-wang/instream-err
Fix the incorrect description for NewInStream
This commit is contained in:
commit
5eef6637ef
|
@ -68,7 +68,7 @@ func (i *InStream) CheckTty(attachStdin, ttyMode bool) error {
|
||||||
return nil
|
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 {
|
func NewInStream(in io.ReadCloser) *InStream {
|
||||||
fd, isTerminal := term.GetFdInfo(in)
|
fd, isTerminal := term.GetFdInfo(in)
|
||||||
return &InStream{in: in, fd: fd, isTerminal: isTerminal}
|
return &InStream{in: in, fd: fd, isTerminal: isTerminal}
|
||||||
|
|
Loading…
Reference in New Issue