1
0
mirror of https://github.com/golang/go synced 2024-11-21 20:04:44 -07:00

fmt.Scan: renamings, strings, errors

- implement scanning for all renamed types
	(compiler bug stops complex from being renamable,
	so it can't be tested but the code is there)
- %q %x for strings
- error handling now done with panic/recover

R=rsc
CC=golang-dev
https://golang.org/cl/1458041
This commit is contained in:
Rob Pike 2010-06-01 15:22:01 -07:00
parent b8a89972ee
commit 5df40b434d

View File

@ -27,7 +27,7 @@ type readRuner interface {
type ScanState interface {
// GetRune reads the next rune (Unicode code point) from the input.
GetRune() (rune int, err os.Error)
// UngetRune causes the next call to Get to return the rune.
// UngetRune causes the next call to GetRune to return the rune.
UngetRune(rune int)
// Token returns the next space-delimited token from the input.
Token() (token string, err os.Error)