diff options
| author | Rob Pike <r@golang.org> | 2009-04-17 00:08:24 -0700 | 
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2009-04-17 00:08:24 -0700 | 
| commit | 3696e3e558a5be76b8af9698ff0e56719e47ec59 (patch) | |
| tree | c20f34ec6f9dea967a511f65b239c5e8637fec8f /src/lib/io/bytebuffer.go | |
| parent | df02778ccda228c665179d0ff3dac77217ad6633 (diff) | |
| download | golang-3696e3e558a5be76b8af9698ff0e56719e47ec59.tar.gz | |
Step 1 of the Big Error Shift: make os.Error an interface and replace *os.Errors with os.Errors.
lib/template updated to use new setup; its clients also updated.
Step 2 will make os's error support internally much cleaner.
R=rsc
OCL=27586
CL=27586
Diffstat (limited to 'src/lib/io/bytebuffer.go')
| -rw-r--r-- | src/lib/io/bytebuffer.go | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/lib/io/bytebuffer.go b/src/lib/io/bytebuffer.go index 440f265c5..9c78e8566 100644 --- a/src/lib/io/bytebuffer.go +++ b/src/lib/io/bytebuffer.go @@ -40,7 +40,7 @@ func (b *ByteBuffer) Reset() {  // Write appends the contents of p to the buffer.  The return  // value is the length of p; err is always nil. -func (b *ByteBuffer) Write(p []byte) (n int, err *os.Error) { +func (b *ByteBuffer) Write(p []byte) (n int, err os.Error) {  	plen := len(p);  	if len(b.buf) == 0 {  		b.cap = plen + 1024; @@ -60,7 +60,7 @@ func (b *ByteBuffer) Write(p []byte) (n int, err *os.Error) {  // Read reads the next len(p) bytes from the buffer or until the buffer  // is drained.  The return value is the number of bytes read; err is always nil. -func (b *ByteBuffer) Read(p []byte) (n int, err *os.Error) { +func (b *ByteBuffer) Read(p []byte) (n int, err os.Error) {  	plen := len(p);  	if len(b.buf) == 0 {  		return 0, nil | 
