mirror of
https://github.com/golang/go
synced 2024-11-23 00:00:07 -07:00
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>
This commit is contained in:
parent
1a51b59c11
commit
11084a9a1e
@ -250,7 +250,7 @@ func (check *Checker) err(at poser, code Code, msg string, soft bool) {
|
||||
pos = check.errpos
|
||||
}
|
||||
|
||||
// If we have an URL for error codes, add a link to the first line.
|
||||
// If we have a URL for error codes, add a link to the first line.
|
||||
if code != 0 && check.conf.ErrorURL != "" {
|
||||
u := fmt.Sprintf(check.conf.ErrorURL, code)
|
||||
if i := strings.Index(msg, "\n"); i >= 0 {
|
||||
|
@ -228,7 +228,7 @@ func (check *Checker) report(errp *error_) {
|
||||
panic("no error code provided")
|
||||
}
|
||||
|
||||
// If we have an URL for error codes, add a link to the first line.
|
||||
// If we have a URL for error codes, add a link to the first line.
|
||||
if errp.code != 0 && check.conf._ErrorURL != "" {
|
||||
u := fmt.Sprintf(check.conf._ErrorURL, errp.code)
|
||||
if i := strings.Index(msg, "\n"); i >= 0 {
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user