]> Cypherpunks repositories - gostls13.git/commitdiff
io: fix spelling in documentation for io.Discard
authorSimão Gomes Viana <simaogmv@gmail.com>
Tue, 23 Mar 2021 21:50:41 +0000 (21:50 +0000)
committerIan Lance Taylor <iant@golang.org>
Tue, 23 Mar 2021 22:17:52 +0000 (22:17 +0000)
In the process of refactoring ioutil.Discard to io.Discard in
CL 263141 "an" should have been changed to "a" but was likely
missed in the process.

This commit corrects the spelling of the documentation.

Change-Id: I0609c45878291f8f01560efc3f3e6fba191e095b
GitHub-Last-Rev: e3257ca272dff42ed7d07b6e6a5fc49493772653
GitHub-Pull-Request: golang/go#45190
Reviewed-on: https://go-review.googlesource.com/c/go/+/304209
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Trust: Robert Griesemer <gri@golang.org>

src/io/io.go

index ffd3cedc254ee8b71cd6e7de18b9abdf8ffb42b6..2724321ed9d42012e2e0d3de78c673fd4a063fcc 100644 (file)
@@ -566,7 +566,7 @@ func (t *teeReader) Read(p []byte) (n int, err error) {
        return
 }
 
-// Discard is an Writer on which all Write calls succeed
+// Discard is a Writer on which all Write calls succeed
 // without doing anything.
 var Discard Writer = discard{}