aboutsummaryrefslogtreecommitdiff
path: root/src/fmt
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2023-01-29 14:40:22 +0800
committerThan McIntosh <thanm@google.com>2023-01-30 18:10:36 +0000
commitdbfdc446fe70a3639ba00eb3d9141ba10783d7cf (patch)
tree31f71fa0ae88385cf56791ef9188ceb2859f05bf /src/fmt
parent4373c6f5768bebeacbedebfddb19013c5771bba6 (diff)
downloadgo-dbfdc446fe70a3639ba00eb3d9141ba10783d7cf.tar.gz
go-dbfdc446fe70a3639ba00eb3d9141ba10783d7cf.zip
all: fix problematic comments
Change-Id: If092ae7c72b66f172ae32fa6c7294a7ac250362e Reviewed-on: https://go-review.googlesource.com/c/go/+/463995 Reviewed-by: Cherry Mui <cherryyz@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com> Run-TryBot: Than McIntosh <thanm@google.com>
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 d38610df35..2780b82de2 100644
--- a/src/fmt/scan.go
+++ b/src/fmt/scan.go
@@ -803,7 +803,7 @@ func (s *ss) convertFloat(str string, n int) float64 {
return f
}
-// convertComplex converts the next token to a complex128 value.
+// scanComplex converts the next token to a complex128 value.
// The atof argument is a type-specific reader for the underlying type.
// If we're reading complex64, atof will parse float32s and convert them
// to float64's to avoid reproducing this code for each complex type.