We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 924fb33 commit 25012bfCopy full SHA for 25012bf
buffer.go
@@ -118,8 +118,9 @@ func (buf Buffer) String() string {
118
// fix the MSBs or the LSBs.
119
//
120
// Resize always reallocates internal memory. That is, the buffers created by
121
-// Slice method break their relationship with the parent buffer by calling this
122
-// Resize, even if nBits is equivalent to its current size.
+// Slice method or NewBufferFromByteSlice break their relationship with the
+// parent buffer or slice by calling this Resize, even if nBits is equivalent to
123
+// or less than its current size.
124
func (buf *Buffer) Resize(nBits int, align Alignment) {
125
switch {
126
case nBits < 0:
0 commit comments