]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: fix misuses of "a" vs "an"
authorcui fliter <imcusg@gmail.com>
Wed, 27 Sep 2023 02:54:14 +0000 (10:54 +0800)
committerGopher Robot <gobot@golang.org>
Wed, 27 Sep 2023 13:16:47 +0000 (13:16 +0000)
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>

src/cmd/compile/internal/types2/errors.go
src/go/types/errors.go
src/syscall/js/js.go

index 7db06d944d8d08bb11009b6ddfe9f1ac22f68158..90c54d172ef36f6f6fbff23e14aed5f7ee32357d 100644 (file)
@@ -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 {
index 14d0383e37248fb99fa910bdd14d89a70b26c8c7..2653f9c6c04a8d47dd79651c5019b4912a1bfb4f 100644 (file)
@@ -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 {
index 2515b4f9ca90a1f86379f4863df4e4148e55b952..f7e32eb366db81d1c1cb5d1fc478b021a83f7084 100644 (file)
@@ -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
 }