aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/gob/decoder.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2018-10-22 14:04:18 +1100
committerRob Pike <r@golang.org>2018-10-22 05:44:46 +0000
commit7c2718b12a33180b3f6099e321c25af35c67f6fd (patch)
tree037fc3358bdbdc8078717b4f905b6a3f05ad4001 /src/encoding/gob/decoder.go
parentf5df0a95751e92efcc5adb301603781035eac5b3 (diff)
downloadgo-7c2718b12a33180b3f6099e321c25af35c67f6fd.tar.xz
doc: tweak example in Effective Go
A prior attempt at addressing the issue got bogged down in an endless conversation around the subtleties of Read semantics. Let's not go there. Instead, we put the issue to bed, perhaps not in perfect comfort but well enough, by moving a line of the example so that even if there is a "benign" error as the issue suggests, the loop terminates with n and err correctly set. Fixes #27818 Change-Id: I4a32d56c9e782f17578565d90b22ce531e3d8667 Reviewed-on: https://go-review.googlesource.com/c/143677 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/encoding/gob/decoder.go')
0 files changed, 0 insertions, 0 deletions