]> Cypherpunks.ru repositories - gostls13.git/commit
runtime/metrics: expand Read documention with caveats
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 7 Dec 2020 15:03:51 +0000 (15:03 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 10 Dec 2020 21:08:17 +0000 (21:08 +0000)
commite0d20e52ee00fdf197f359d98526ff7ca0842e6b
treefc0392864116c9305cb8c5854e0762d9078f60e3
parentd0f40d29223a2aef58475f81a559b2d27396134a
runtime/metrics: expand Read documention with caveats

This change modifies the documentation of Read with some caveats about
reusing the slice passed in to Read as well as with what concurrent
situations are safe.

Change-Id: I76fd31acc67ae384546a8442dfbf9d16b7445cff
Reviewed-on: https://go-review.googlesource.com/c/go/+/275853
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/metrics/sample.go