You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In /pkg/bytes/buffer.go, func (b *Buffer) Write(p []byte) should clearly document that
calling Write will always grow the buffer if needed.
Neither the function comment for Write nor the type comment for bytes.Buffer document
that the buffer grows on-demand. The documentation should make this clear.
Suggest changing the first sentence of the comment to read:
"Write appends the contents of p to the buffer growing the capacity if needed."