Explorar o código

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 %!s(int64=10) %!d(string=hai) anos
pai
achega
a715b0e31b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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