Browse code

Fix Typo in stdcopy.go

Signed-off-by: Yu Chengxia <yuchengxia@huawei.com>

yuchengxia authored on 2015/06/24 16:00:14
Showing 1 changed files
... ...
@@ -31,7 +31,7 @@ type StdWriter struct {
31 31
 func (w *StdWriter) Write(buf []byte) (n int, err error) {
32 32
 	var n1, n2 int
33 33
 	if w == nil || w.Writer == nil {
34
-		return 0, errors.New("Writer not instanciated")
34
+		return 0, errors.New("Writer not instantiated")
35 35
 	}
36 36
 	binary.BigEndian.PutUint32(w.prefix[4:], uint32(len(buf)))
37 37
 	n1, err = w.Writer.Write(w.prefix[:])
... ...
@@ -47,7 +47,7 @@ func (w *StdWriter) Write(buf []byte) (n int, err error) {
47 47
 	return
48 48
 }
49 49
 
50
-// NewStdWriter instanciates a new Writer.
50
+// NewStdWriter instantiates a new Writer.
51 51
 // Everything written to it will be encapsulated using a custom format,
52 52
 // and written to the underlying `w` stream.
53 53
 // This allows multiple write streams (e.g. stdout and stderr) to be muxed into a single connection.