瀏覽代碼

Merge pull request #12326 from xiaods/issure-12316

correct pkg/stdcopy NewStdWriter function comments
Brian Goff 10 年之前
父節點
當前提交
871f4cdccb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/stdcopy/stdcopy.go

+ 1 - 1
pkg/stdcopy/stdcopy.go

@@ -52,7 +52,7 @@ func (w *StdWriter) Write(buf []byte) (n int, err error) {
 // and written to the underlying `w` stream.
 // This allows multiple write streams (e.g. stdout and stderr) to be muxed into a single connection.
 // `t` indicates the id of the stream to encapsulate.
-// It can be utils.Stdin, utils.Stdout, utils.Stderr.
+// It can be stdcopy.Stdin, stdcopy.Stdout, stdcopy.Stderr.
 func NewStdWriter(w io.Writer, t StdType) *StdWriter {
 	if len(t) != StdWriterPrefixLen {
 		return nil