]> Cypherpunks.ru repositories - gostls13.git/commit
io/fs: document that caller can modify slice returned by ReadFile
authorIan Lance Taylor <iant@golang.org>
Mon, 19 Apr 2021 23:05:01 +0000 (16:05 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 21 Apr 2021 16:46:52 +0000 (16:46 +0000)
commit35806efda21242df2c56ca276a842481acf6fea0
tree3a54fc827fce7a521288540afd59c6b292396a75
parentb8a359d984b9b16a405fa66011078a477c6e2da4
io/fs: document that caller can modify slice returned by ReadFile

Also add a test to testing/fstest.

Fixes #45186

Change-Id: I00e5f46ccd5269dbc266a8f2ebc9a62ebb1297b8
Reviewed-on: https://go-review.googlesource.com/c/go/+/311649
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/io/fs/readfile.go
src/testing/fstest/testfs.go