]> Cypherpunks repositories - gostls13.git/commit
fmt: fix bug in UnreadRune: must clear memory of previous
authorRob Pike <r@golang.org>
Thu, 2 Jun 2011 21:53:50 +0000 (07:53 +1000)
committerRob Pike <r@golang.org>
Thu, 2 Jun 2011 21:53:50 +0000 (07:53 +1000)
commitce5c1cf0368a7b17254086ab00134e47137ee720
tree99273e4430cdc58a3081d1928e94ea74e1b639a8
parent4e9e92500249258e9baa77fbaf8075f0c07e56b2
fmt: fix bug in UnreadRune: must clear memory of previous
rune if input implements UnreadRune; otherwise the lookahead
will lie.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4548082
src/pkg/fmt/scan.go