diff options
| author | cui fliter <imcusg@gmail.com> | 2023-03-31 00:00:19 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-04-04 14:20:53 +0000 |
| commit | d8d22664c65b0054fc9ea6ba7e945481348fc8fc (patch) | |
| tree | 4064f3dcc84f382816d6cb50437c6267a1c63f57 /src/cmd/compile/internal/ssa/loopbce.go | |
| parent | f62c9701b4bc61da6a5f4db8ef81d816f112430e (diff) | |
| download | go-d8d22664c65b0054fc9ea6ba7e945481348fc8fc.tar.xz | |
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: I53ac724070e3ff3d33c304483fe72c023c7cda47
Reviewed-on: https://go-review.googlesource.com/c/go/+/480536
Run-TryBot: shuang cui <imcusg@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/loopbce.go')
| -rw-r--r-- | src/cmd/compile/internal/ssa/loopbce.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/compile/internal/ssa/loopbce.go b/src/cmd/compile/internal/ssa/loopbce.go index 273ead4942..b7dfaa33e3 100644 --- a/src/cmd/compile/internal/ssa/loopbce.go +++ b/src/cmd/compile/internal/ssa/loopbce.go @@ -93,7 +93,7 @@ func findIndVar(f *Func) []indVar { var init *Value // starting value var limit *Value // ending value - // Check thet the control if it either ind </<= limit or limit </<= ind. + // Check that the control if it either ind </<= limit or limit </<= ind. // TODO: Handle unsigned comparisons? c := b.Controls[0] inclusive := false @@ -117,12 +117,12 @@ func findIndVar(f *Func) []indVar { // for i := len(n)-1; i >= 0; i-- init, inc, nxt = parseIndVar(limit) if init == nil { - // No recognied induction variable on either operand + // No recognized induction variable on either operand continue } // Ok, the arguments were reversed. Swap them, and remember that we're - // looking at a ind >/>= loop (so the induction must be decrementing). + // looking at an ind >/>= loop (so the induction must be decrementing). ind, limit = limit, ind less = false } |
