aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbirdcfly <fp544037857@gmail.com>2022-07-24 13:41:16 +0000
committerGopher Robot <gobot@golang.org>2022-07-24 21:05:02 +0000
commit64f2829c9cdf12b893068305b2451c81b0a5b3a6 (patch)
tree94e7cf63d438dfc5397f2aa46c1c9bcf139fd303
parent2ff563a00e45308fad74f1f86d816f4f636584a0 (diff)
downloadgo-64f2829c9cdf12b893068305b2451c81b0a5b3a6.tar.gz
go-64f2829c9cdf12b893068305b2451c81b0a5b3a6.zip
runtime: fix typo in function comments
The correct word to use here is 'receive' not 'recieve' Change-Id: Ia33e2a91c1c2da6dbe479a05518dbb9b8733d20d GitHub-Last-Rev: e3c3e211dd7055d1dab8699a88d0b35c459da149 GitHub-Pull-Request: golang/go#54025 Reviewed-on: https://go-review.googlesource.com/c/go/+/419316 Reviewed-by: Keith Randall <khr@google.com> Auto-Submit: Keith Randall <khr@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Keith Randall <khr@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Keith Randall <khr@golang.org>
-rw-r--r--src/runtime/string.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/string.go b/src/runtime/string.go
index 5ab0ac3a86..359a5658c5 100644
--- a/src/runtime/string.go
+++ b/src/runtime/string.go
@@ -432,7 +432,7 @@ func atoi32(s string) (int32, bool) {
// - KiB, MiB, GiB, TiB which represent binary IEC/ISO 80000 units, or
// - B, which just represents bytes.
//
-// Returns an int64 because that's what its callers want and recieve,
+// Returns an int64 because that's what its callers want and receive,
// but the result is always non-negative.
func parseByteCount(s string) (int64, bool) {
// The empty string is not valid.