]> Cypherpunks repositories - gostls13.git/commit
net/url: use strings.Index instead of a loop
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 28 Mar 2013 20:43:34 +0000 (13:43 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 28 Mar 2013 20:43:34 +0000 (13:43 -0700)
commit731dcb7680303792315625a86ec0390ca41c03b9
tree00067d9b1700b5caddaaea138c3ff74568e08811
parentcb79b2cf22ecd84b51ee46ddc922b9214fccc3c0
net/url: use strings.Index instead of a loop

We already depend on strings in this file, so use it.

Plus strings.Index will be faster than a manual loop
once issue 3751 is finished.

R=golang-dev, khr
CC=golang-dev
https://golang.org/cl/8116043
src/pkg/net/url/url.go