all: rename os.EOF to io.EOF in various non-code contexts

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5334050
This commit is contained in:
Vincent Vanackere 2011-11-03 14:01:30 -07:00 committed by Rob Pike
parent 4fa24e9f66
commit 3d2f7f086e

View File

@ -471,7 +471,7 @@ Again:
// RFC suggests that EOF without an alertCloseNotify is // RFC suggests that EOF without an alertCloseNotify is
// an error, but popular web sites seem to do this, // an error, but popular web sites seem to do this,
// so we can't make it an error. // so we can't make it an error.
// if err == os.EOF { // if err == io.EOF {
// err = io.ErrUnexpectedEOF // err = io.ErrUnexpectedEOF
// } // }
if e, ok := err.(net.Error); !ok || !e.Temporary() { if e, ok := err.(net.Error); !ok || !e.Temporary() {