Commit 89a7c87e authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

all: use io.ByteWriter now that it exists

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/7079043
parent bc776f6c
......@@ -13,7 +13,7 @@ import (
// A writer is a buffered, flushable writer.
type writer interface {
WriteByte(byte) error
io.ByteWriter
Flush() error
}
......
......@@ -14,7 +14,7 @@ import (
type writer interface {
io.Writer
WriteByte(byte) error
io.ByteWriter
WriteString(string) (int, error)
}
......
......@@ -210,8 +210,8 @@ func init() {
// writer is a buffered writer.
type writer interface {
Flush() error
Write([]byte) (int, error)
WriteByte(byte) error
io.Writer
io.ByteWriter
}
// encoder encodes an image to the JPEG format.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment