go/src/strings
Jabar Asadi 9eceffdf12 strings: correct NewReader documentation
The provided description for `NewReader` says that the underlying string is read-only. but the following example shows that this is not the case.
<br />

rd := strings.NewReader("this is a text")

rd.Reset("new text") <--- underlying string gets updated here

Change-Id: I95c7099c2e63670c84307d4317b702bf13a4025a
GitHub-Last-Rev: a16a60b0f1
GitHub-Pull-Request: golang/go#60074
Reviewed-on: https://go-review.googlesource.com/c/go/+/493817
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
2023-05-12 17:40:51 +00:00
..
builder.go bytes, strings: avoid unnecessary zero initialization 2023-02-27 19:11:00 +00:00
builder_test.go strings: add a test case of growLen is negative 2022-09-13 17:39:52 +00:00
clone.go strings: simplify code using unsafe.StringData 2022-09-07 01:33:55 +00:00
clone_test.go strings: remove redundant symbols 2023-01-17 17:24:17 +00:00
compare.go net/netip: add new IP address package 2021-11-02 01:28:01 +00:00
compare_test.go strings: simplify code using unsafe.StringData 2022-09-07 01:33:55 +00:00
example_test.go bytes,strings: add some examples 2023-01-20 23:21:39 +00:00
export_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
reader.go strings: correct NewReader documentation 2023-05-12 17:40:51 +00:00
reader_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
replace.go strings: reduce allocation for byteReplacer 2022-08-19 16:32:49 +00:00
replace_test.go strings: speed up Map 2017-02-24 22:53:05 +00:00
search.go all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
search_test.go all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
strings.go bytes, strings: avoid unnecessary zero initialization 2023-02-27 19:11:00 +00:00
strings_test.go bytes, strings: add ContainsFunc 2023-01-24 22:06:45 +00:00