Bläddra i källkod

Add s to a verb, write

toshimaru 6 år sedan
förälder
incheckning
10fba6843c
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      colorable_windows.go
  2. 1 1
      noncolorable.go

+ 1 - 1
colorable_windows.go

@@ -414,7 +414,7 @@ func doTitleSequence(er *bytes.Reader) error {
 	return nil
 }
 
-// Write data on console
+// Write writes data on console
 func (w *Writer) Write(data []byte) (n int, err error) {
 	var csbi consoleScreenBufferInfo
 	procGetConsoleScreenBufferInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&csbi)))

+ 1 - 1
noncolorable.go

@@ -15,7 +15,7 @@ func NewNonColorable(w io.Writer) io.Writer {
 	return &NonColorable{out: w}
 }
 
-// Write data on console
+// Write writes data on console
 func (w *NonColorable) Write(data []byte) (n int, err error) {
 	er := bytes.NewReader(data)
 	var bw [1]byte