Commit e8c87a7d authored by Robert Griesemer's avatar Robert Griesemer

fix build: temporarily disable the use of strings.Reader UnreadRune in fmt

R=r
CC=golang-dev
https://golang.org/cl/4532090
parent 9ef8ebaf
......@@ -226,6 +226,15 @@ func (s *ss) mustReadRune() (rune int) {
}
func (s *ss) UnreadRune() os.Error {
// Don't use strings.Reader.UnreadRune for now - appears to cause a problem.
// TODO(r, gri): Fix this and remove code between --- lines!
// ---
if _, ok := s.rr.(*strings.Reader); ok {
s.peekRune = s.prevRune
s.count--
return nil
}
// ---
if u, ok := s.rr.(runeUnreader); ok {
u.UnreadRune()
} else {
......
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