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/bytes | |
parent | f62c9701b4bc61da6a5f4db8ef81d816f112430e (diff) | |
download | go-d8d22664c65b0054fc9ea6ba7e945481348fc8fc.tar.gz go-d8d22664c65b0054fc9ea6ba7e945481348fc8fc.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: 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/bytes')
-rw-r--r-- | src/bytes/buffer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bytes/buffer.go b/src/bytes/buffer.go index 5ab58c78bb..5a68188423 100644 --- a/src/bytes/buffer.go +++ b/src/bytes/buffer.go @@ -109,7 +109,7 @@ func (b *Buffer) Reset() { b.lastRead = opInvalid } -// tryGrowByReslice is a inlineable version of grow for the fast-case where the +// tryGrowByReslice is an inlineable version of grow for the fast-case where the // internal buffer only needs to be resliced. // It returns the index where bytes should be written and whether it succeeded. func (b *Buffer) tryGrowByReslice(n int) (int, bool) { |