LGTM http://codereview.appspot.com/2103046/diff/3001/src/pkg/bufio/bufio.go File src/pkg/bufio/bufio.go (right): http://codereview.appspot.com/2103046/diff/3001/src/pkg/bufio/bufio.go#newcode223 src/pkg/bufio/bufio.go:223: // UnreadRune unreads the last rune. If the ...
14 years, 7 months ago
(2010-09-12 03:46:38 UTC)
#2
On Sat, Sep 11, 2010 at 23:59, Rob 'Commander' Pike <r@golang.org> wrote: > I arranged ...
14 years, 7 months ago
(2010-09-12 04:08:51 UTC)
#4
On Sat, Sep 11, 2010 at 23:59, Rob 'Commander' Pike <r@golang.org> wrote:
> I arranged that a read at eof does not undo the state, hence the
> adjective. lose it anyway?
Yes. A normal Read might discard a full buffer in preparation
to get more data, resetting b.r and b.w, only to have the read fail.
That was an unsuccessful read operation but UnreadRune is
no longer possible.
Russ
Issue 2103046: code review 2103046: bufio: add UnreadRune.
(Closed)
Created 14 years, 7 months ago by r
Modified 14 years, 7 months ago
Reviewers:
Base URL:
Comments: 1