aboutsummaryrefslogtreecommitdiff
path: root/src/strconv
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2021-07-23 22:28:26 +0900
committerRuss Cox <rsc@golang.org>2021-08-17 13:54:10 +0000
commit4012fea822763ef3aa66dd949fa95b9f8d89450a (patch)
tree8419513e85867c188fb57e25cd660c53509dfee6 /src/strconv
parentb7b790a71a86678f036b7d30a892c5f792c5092f (diff)
downloadgo-4012fea822763ef3aa66dd949fa95b9f8d89450a.tar.gz
go-4012fea822763ef3aa66dd949fa95b9f8d89450a.zip
all: fix typos
Change-Id: I83180c472db8795803c1b9be3a33f35959e4dcc2 Reviewed-on: https://go-review.googlesource.com/c/go/+/336889 Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/strconv')
-rw-r--r--src/strconv/ftoaryu.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strconv/ftoaryu.go b/src/strconv/ftoaryu.go
index 1c61288b9f..f2e74bed17 100644
--- a/src/strconv/ftoaryu.go
+++ b/src/strconv/ftoaryu.go
@@ -291,7 +291,7 @@ func ryuFtoaShortest(d *decimalSlice, mant uint64, exp int, flt *floatInfo) {
// Is it allowed to use 'du' as a result?
// It is always allowed when it is truncated, but also
// if it is exact and the original binary mantissa is even
- // When disallowed, we can substract 1.
+ // When disallowed, we can subtract 1.
uok := !du0 || fracu > 0
if du0 && fracu == 0 {
uok = mant&1 == 0