diff options
Diffstat (limited to 'src/encoding')
| -rw-r--r-- | src/encoding/binary/binary.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/encoding/binary/binary.go b/src/encoding/binary/binary.go index 3834254596..2d01a3cb28 100644 --- a/src/encoding/binary/binary.go +++ b/src/encoding/binary/binary.go @@ -152,7 +152,8 @@ func (bigEndian) GoString() string { return "binary.BigEndian" } // When reading into structs, the field data for fields with // blank (_) field names is skipped; i.e., blank field names // 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. // If an EOF happens after reading some but not all the bytes, |
