Fix typo in view.go

This commit is contained in:
Roi Martin (@nibble_ds) 2014-01-19 17:44:36 +01:00
parent 23679ee422
commit 4fb4826188
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ func (v *View) Origin() (x, y int) {
// Write appends a byte slice into the view's internal buffer. Because // Write appends a byte slice into the view's internal buffer. Because
// View implements the io.Writer interface, it can be passed as parameter // View implements the io.Writer interface, it can be passed as parameter
// of functions like fmt.FPrintf, fmt.FPrintln, io.Copy, etc. Clear must // of functions like fmt.Fprintf, fmt.Fprintln, io.Copy, etc. Clear must
// be called to clear the view's buffer. // be called to clear the view's buffer.
func (v *View) Write(p []byte) (n int, err error) { func (v *View) Write(p []byte) (n int, err error) {
r := bytes.NewReader(p) r := bytes.NewReader(p)