]> Cypherpunks repositories - gostls13.git/commit
strings: fix NewReplacer(old0, new0, old1, new1, ...) to be consistent
authorNigel Tao <nigeltao@golang.org>
Wed, 12 Sep 2012 00:40:39 +0000 (10:40 +1000)
committerNigel Tao <nigeltao@golang.org>
Wed, 12 Sep 2012 00:40:39 +0000 (10:40 +1000)
commit6910356ea899e0c7b19da5f59c6058a737ed5e93
treebb8d0678743726ccb855975e55bf0e547ddf709d
parente39072d65fd3aeb1db0744226c27abc1fa02e047
strings: fix NewReplacer(old0, new0, old1, new1, ...) to be consistent
when oldi == oldj.

Benchmark numbers show no substantial change.

R=eric.d.eisner, rogpeppe
CC=golang-dev
https://golang.org/cl/6496104
src/pkg/strings/replace.go
src/pkg/strings/replace_test.go