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
NewBuffer says
In most cases, new(Buffer) (or just declaring a Buffer variable) is
preferable to NewBuffer. In particular, passing a non-empty buf to
NewBuffer and then writing to the Buffer will overwrite buf, not append
to it.
I think that's backward. It will append to buf, not overwrite it.
For Buffer.Truncate, what happens wen n > len? Does it panic?
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: