aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2015-01-25 11:45:31 -0800
committerRob Pike <r@golang.org>2015-01-25 23:14:51 +0000
commitaa517ef51cdf3133ac38e38cce03ad79e928cc42 (patch)
tree5e5fe49dc4798d7d0c5eb6e34b9eae2ceb943dd8
parent5ec6e440081f0942ee108333787d8ce887d17e04 (diff)
blog: delete spurious & in article about errors
bufio.NewWriter already returns a pointer. Change-Id: I6348b11c2dcb4a371aefb4a151c68fbb6b4bc616 Reviewed-on: https://go-review.googlesource.com/3268 Reviewed-by: Andrew Gerrand <adg@golang.org>
-rw-r--r--content/errors-are-values.article2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/errors-are-values.article b/content/errors-are-values.article
index eff779e..95a7d3f 100644
--- a/content/errors-are-values.article
+++ b/content/errors-are-values.article
@@ -207,7 +207,7 @@ that is mostly about honoring the [[http://golang.org/pkg/io/#Writer][`io.Writer
The `Write` method of `bufio.Writer` behaves just like our `errWriter.write`
method above, with `Flush` reporting the error, so our example could be written like this:
- b := &bufio.NewWriter(fd)
+ b := bufio.NewWriter(fd)
b.Write(p0[a:b])
b.Write(p1[c:d])
b.Write(p2[e:f])