aboutsummaryrefslogtreecommitdiff
path: root/src/syscall
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2023-09-27 10:54:14 +0800
committerGopher Robot <gobot@golang.org>2023-09-27 13:16:47 +0000
commit11084a9a1e6118a4492aa5d40df5c972c8aac1eb (patch)
tree98970ee6ed2a6ef58542a7ca91cb415d7fcd56d6 /src/syscall
parent1a51b59c119034dfbcd98063bf775d92e6f76db4 (diff)
downloadgo-11084a9a1e6118a4492aa5d40df5c972c8aac1eb.tar.gz
go-11084a9a1e6118a4492aa5d40df5c972c8aac1eb.zip
all: fix misuses of "a" vs "an"
Fixes the misuse of "a" vs "an", according to English grammatical expectations and using https://www.a-or-an.com/ Change-Id: Ic9600dcbb3d843880349729478266c4b9bcf7316 Reviewed-on: https://go-review.googlesource.com/c/go/+/531335 Run-TryBot: shuang cui <imcusg@gmail.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/syscall')
-rw-r--r--src/syscall/js/js.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syscall/js/js.go b/src/syscall/js/js.go
index 2515b4f9ca..f7e32eb366 100644
--- a/src/syscall/js/js.go
+++ b/src/syscall/js/js.go
@@ -576,7 +576,7 @@ func CopyBytesToGo(dst []byte, src Value) int {
n, ok := copyBytesToGo(dst, src.ref)
runtime.KeepAlive(src)
if !ok {
- panic("syscall/js: CopyBytesToGo: expected src to be an Uint8Array or Uint8ClampedArray")
+ panic("syscall/js: CopyBytesToGo: expected src to be a Uint8Array or Uint8ClampedArray")
}
return n
}
@@ -591,7 +591,7 @@ func CopyBytesToJS(dst Value, src []byte) int {
n, ok := copyBytesToJS(dst.ref, src)
runtime.KeepAlive(dst)
if !ok {
- panic("syscall/js: CopyBytesToJS: expected dst to be an Uint8Array or Uint8ClampedArray")
+ panic("syscall/js: CopyBytesToJS: expected dst to be a Uint8Array or Uint8ClampedArray")
}
return n
}