mirror of
https://github.com/golang/go.git
synced 2026-02-09 11:20:05 +00:00
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:
|
||
|---|---|---|
| .. | ||
| builder.go | ||
| builder_test.go | ||
| clone.go | ||
| clone_test.go | ||
| compare.go | ||
| compare_test.go | ||
| example_test.go | ||
| export_test.go | ||
| reader.go | ||
| reader_test.go | ||
| replace.go | ||
| replace_test.go | ||
| search.go | ||
| search_test.go | ||
| strings.go | ||
| strings_test.go | ||