1
0
mirror of https://github.com/golang/go synced 2024-11-19 03:54:42 -07:00
go/src/strings
Francesco Renzi 80cca23b59 strings: document that order of pairs matters in NewReplacer
Update NewReplacer documentation to specify that in the case of
multiple matches at the same position, the matching old/new
pair that appears first in NewReplacer arguments takes precedence.

Fixes #32699

Change-Id: I9d0616d28e5cd8c9bfa301be201f2b0ebf361dff
Reviewed-on: https://go-review.googlesource.com/c/go/+/185099
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
2019-07-10 21:26:21 +00:00
..
builder_test.go
builder.go
compare_test.go strings: lower running time of TestCompareStrings 2018-11-04 18:55:55 +00:00
compare.go
example_test.go strings: clarify example of ContainsAny 2019-05-24 15:23:08 +00:00
export_test.go
reader_test.go
reader.go
replace_test.go
replace.go strings: document that order of pairs matters in NewReplacer 2019-07-10 21:26:21 +00:00
search_test.go
search.go
strings_test.go strings, bytes: add ToValidUTF8 2019-05-01 18:31:47 +00:00
strings.go strings, bytes: add ToValidUTF8 2019-05-01 18:31:47 +00:00