From decc5d534006eaa8655992a34ab0f25c88dc4966 Mon Sep 17 00:00:00 2001 From: yuchengxia Date: Wed, 24 Jun 2015 15:00:14 +0800 Subject: [PATCH] Fix Typo in stdcopy.go Signed-off-by: Yu Chengxia Upstream-commit: 16be453e0f3827278427f33bbec110e0fabbc17f Component: engine --- components/engine/pkg/stdcopy/stdcopy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/engine/pkg/stdcopy/stdcopy.go b/components/engine/pkg/stdcopy/stdcopy.go index dbb74e5a20..684b4d4cd1 100644 --- a/components/engine/pkg/stdcopy/stdcopy.go +++ b/components/engine/pkg/stdcopy/stdcopy.go @@ -31,7 +31,7 @@ type StdWriter struct { func (w *StdWriter) Write(buf []byte) (n int, err error) { var n1, n2 int if w == nil || w.Writer == nil { - return 0, errors.New("Writer not instanciated") + return 0, errors.New("Writer not instantiated") } binary.BigEndian.PutUint32(w.prefix[4:], uint32(len(buf))) n1, err = w.Writer.Write(w.prefix[:]) @@ -47,7 +47,7 @@ func (w *StdWriter) Write(buf []byte) (n int, err error) { return } -// NewStdWriter instanciates a new Writer. +// NewStdWriter instantiates a new Writer. // Everything written to it will be encapsulated using a custom format, // and written to the underlying `w` stream. // This allows multiple write streams (e.g. stdout and stderr) to be muxed into a single connection.