Przeglądaj źródła

correct pkg/stdcopy NewStdWriter function comments

pkg/stdcopy NewStdWriter function has wrong doc comment,
utils is not correct, it should be stdcopy

Signed-off-by: Deshi Xiao <xiaods@gmail.com>
Deshi Xiao 10 lat temu
rodzic
commit
a715b0e31b
1 zmienionych plików z 1 dodań i 1 usunięć
  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