From d8d22664c65b0054fc9ea6ba7e945481348fc8fc Mon Sep 17 00:00:00 2001 From: cui fliter Date: Fri, 31 Mar 2023 00:00:19 +0800 Subject: 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 Reviewed-by: Ian Lance Taylor TryBot-Result: Gopher Robot Auto-Submit: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Reviewed-by: Michael Knyszek --- src/bytes/buffer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bytes/buffer.go') 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) { -- cgit v1.3