Skip to content

Commit 32e51cb

Browse files
committed
Improve ReadOptions docs
1 parent 0de63e4 commit 32e51cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

entity.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,12 @@ func (lr *limitedReader) Read(p []byte) (int, error) {
101101
return n, err
102102
}
103103

104+
// ReadOptions are options for ReadWithOptions.
104105
type ReadOptions struct {
105106
// MaxHeaderBytes limits the maximum permissible size of a message header
106107
// block. If exceeded, an error will be returned.
107-
// -1 == no limit, 0 == default value (1MB)
108+
//
109+
// Set to -1 for no limit, set to 0 for the default value (1MB).
108110
MaxHeaderBytes int64
109111
}
110112

0 commit comments

Comments
 (0)