mirror of
https://github.com/golang/go
synced 2024-11-23 22:30:05 -07:00
encoding/binary: clarify the repercussions for not following the docs
Fixes #19794 Change-Id: I462cbc432fe9d4a9e6e79a9833b0013d82a0780e Reviewed-on: https://go-review.googlesource.com/47093 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
070b82e2e8
commit
f081266e4a
@ -152,7 +152,8 @@ func (bigEndian) GoString() string { return "binary.BigEndian" }
|
|||||||
// When reading into structs, the field data for fields with
|
// When reading into structs, the field data for fields with
|
||||||
// blank (_) field names is skipped; i.e., blank field names
|
// blank (_) field names is skipped; i.e., blank field names
|
||||||
// may be used for padding.
|
// may be used for padding.
|
||||||
// When reading into a struct, all non-blank fields must be exported.
|
// When reading into a struct, all non-blank fields must be exported
|
||||||
|
// or Read may panic.
|
||||||
//
|
//
|
||||||
// The error is EOF only if no bytes were read.
|
// The error is EOF only if no bytes were read.
|
||||||
// If an EOF happens after reading some but not all the bytes,
|
// If an EOF happens after reading some but not all the bytes,
|
||||||
|
Loading…
Reference in New Issue
Block a user