]> Cypherpunks repositories - gostls13.git/commitdiff
fmt.Scan: renamings, strings, errors
authorRob Pike <r@golang.org>
Tue, 1 Jun 2010 22:22:01 +0000 (15:22 -0700)
committerRob Pike <r@golang.org>
Tue, 1 Jun 2010 22:22:01 +0000 (15:22 -0700)
- 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

src/pkg/fmt/scan.go

index 17a08226eaab5ab5a1ef8ff01e54e1270c0c0e81..0d71e1055caf0b8f0d0aef78d7b6b40fccb14778 100644 (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)