diff options
| author | Rob Pike <r@golang.org> | 2010-06-01 15:22:01 -0700 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2010-06-01 15:22:01 -0700 |
| commit | 5df40b434d2b10fd7f8ba6ab1ea283864c9c0d26 (patch) | |
| tree | 728750d6524ce9f899d99d75a4f3183f8d0ab867 | |
| parent | b8a89972eee78f59bec378d2e1736f1889268b18 (diff) | |
| download | go-5df40b434d2b10fd7f8ba6ab1ea283864c9c0d26.tar.xz | |
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
| -rw-r--r-- | src/pkg/fmt/scan.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/fmt/scan.go b/src/pkg/fmt/scan.go index 17a08226ea..0d71e1055c 100644 --- a/src/pkg/fmt/scan.go +++ b/src/pkg/fmt/scan.go @@ -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) |
