summaryrefslogtreecommitdiff
path: root/src/pkg/fmt
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2010-06-01 15:22:01 -0700
committerRob Pike <r@golang.org>2010-06-01 15:22:01 -0700
commit4970aee78d77720bfa73834f3d4f54ff7a3b793a (patch)
treedaa440079bd8d34872502fcb3f74b935bcf98455 /src/pkg/fmt
parentfa0c7819085d9c58540429a5fbe78e4d015d660f (diff)
downloadgolang-4970aee78d77720bfa73834f3d4f54ff7a3b793a.tar.gz
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 http://codereview.appspot.com/1458041
Diffstat (limited to 'src/pkg/fmt')
-rw-r--r--src/pkg/fmt/scan.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/fmt/scan.go b/src/pkg/fmt/scan.go
index 17a08226e..0d71e1055 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)