diff options
Diffstat (limited to 'content/errors-are-values.article')
-rw-r--r-- | content/errors-are-values.article | 2 |
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]) |