diff options
author | Daniel Martà <mvdan@mvdan.cc> | 2019-12-10 14:27:53 +0000 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2019-12-10 16:23:10 +0000 |
commit | 41348081fa0511c8f442d236d32ff8d589c8c557 (patch) | |
tree | 89b75e7cbc221e7a6cfa21943fe57bfecd870d05 /src/io | |
parent | 3a3093d5c7e1fb557d7b598a758f4925db4b0f13 (diff) | |
download | go-41348081fa0511c8f442d236d32ff8d589c8c557.tar.gz go-41348081fa0511c8f442d236d32ff8d589c8c557.zip |
all: fix a number of misuses of the word "an"
After golang.org/cl/210124, I wondered if the same error had gone
unnoticed elsewhere. I quickly spotted another dozen mistakes after
reading through the output of:
git grep '\<[Aa]n [bcdfgjklmnpqrtvwyz][a-z]'
Many results are false positives for acronyms like "an mtime", since
it's pronounced "an em-time". However, the total amount of output isn't
that large given how simple the grep pattern is.
Change-Id: Iaa2ca69e42f4587a9e3137d6c5ed758887906ca6
Reviewed-on: https://go-review.googlesource.com/c/go/+/210678
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Zach Jones <zachj1@gmail.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/io')
-rw-r--r-- | src/io/io_test.go | 2 | ||||
-rw-r--r-- | src/io/multi_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/io/io_test.go b/src/io/io_test.go index 0e4ce61240..ca90403c59 100644 --- a/src/io/io_test.go +++ b/src/io/io_test.go @@ -13,7 +13,7 @@ import ( "testing" ) -// An version of bytes.Buffer without ReadFrom and WriteTo +// A version of bytes.Buffer without ReadFrom and WriteTo type Buffer struct { bytes.Buffer ReaderFrom // conflicts with and hides bytes.Buffer's ReaderFrom. diff --git a/src/io/multi_test.go b/src/io/multi_test.go index d34794a367..f05d5f74ef 100644 --- a/src/io/multi_test.go +++ b/src/io/multi_test.go @@ -286,7 +286,7 @@ func TestMultiReaderSingleByteWithEOF(t *testing.T) { } } -// Test that a reader returning (n, EOF) at the end of an MultiReader +// Test that a reader returning (n, EOF) at the end of a MultiReader // chain continues to return EOF on its final read, rather than // yielding a (0, EOF). func TestMultiReaderFinalEOF(t *testing.T) { |