Skip to content

bufio: UnreadByte can unread more than one byte #7607

@rui314

Description

@rui314
What does 'go version' print?
go version devel +2b85dda01af0 Wed Mar 19 10:14:04 2014 -0700 linux/amd64

What steps reproduce the problem?
http://play.golang.org/p/S97IegN_jI

UnreadByte can be called any number of times without error until it reaches beginning of
the internal buffer, despite it's documentation says "only the most recently read
byte can be unread."

I'm not sure if it's an undefined behavior or a bug, so I'm just filing it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions