aboutsummaryrefslogtreecommitdiff
path: root/src/fmt
diff options
context:
space:
mode:
authorEmmanuel T Odeke <emmanuel@orijtech.com>2019-08-23 10:05:56 -0600
committerEmmanuel Odeke <emm.odeke@gmail.com>2019-08-23 23:40:29 +0000
commit9e1c864afe00b3cfba3e09d7c67fc17526db464a (patch)
tree1c9f38c9da9108b628886a84c9916e50425ccb06 /src/fmt
parente68412984e644256ca3cdd6d6687ed0ce71ab2a6 (diff)
downloadgo-9e1c864afe00b3cfba3e09d7c67fc17526db464a.tar.gz
go-9e1c864afe00b3cfba3e09d7c67fc17526db464a.zip
doc/go1.13: document fmt's number syntax updates
Fixes #32815 Change-Id: Ia8ac9943a920a056ba7dbc69c1c70fa188f7aca8 Reviewed-on: https://go-review.googlesource.com/c/go/+/191578 Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/fmt')
-rw-r--r--src/fmt/scan.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fmt/scan.go b/src/fmt/scan.go
index 74ada20de7..0dab2c98f7 100644
--- a/src/fmt/scan.go
+++ b/src/fmt/scan.go
@@ -609,7 +609,7 @@ func (s *ss) scanRune(bitSize int) int64 {
return r
}
-// scanBasePrefix reports whether the integer begins with a bas prefix
+// scanBasePrefix reports whether the integer begins with a base prefix
// and returns the base, digit string, and whether a zero was found.
// It is called only if the verb is %v.
func (s *ss) scanBasePrefix() (base int, digits string, zeroFound bool) {