]> Cypherpunks repositories - gostls13.git/commit
net: document methods of Buffers
authorMartin Sucha <anty.sk+git@gmail.com>
Tue, 22 Feb 2022 20:51:04 +0000 (21:51 +0100)
committerIan Lance Taylor <iant@golang.org>
Tue, 22 Feb 2022 23:35:31 +0000 (23:35 +0000)
commit35170365c83085024e4855c14032599f5513d563
tree1e06966e4092c5fc2355f71625db9ee862659e7c
parent3140625606f83328a5c7754fd952ed8d52a76404
net: document methods of Buffers

There is code in the wild that copies the Buffers slice,
but not the contents.
Let's document explicitly that it is not safe to do so.

Updates #45163

Change-Id: Id45e27b93037d4e9f2bfde2558e7869983b60bcf
Reviewed-on: https://go-review.googlesource.com/c/go/+/387434
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
src/net/net.go