Commit 297a08ea authored by Rob Pike's avatar Rob Pike

gofix: forgot to rename the URL type

Fixes #2182

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/4952041
parent 56f94847
...@@ -27,6 +27,7 @@ func init() { ...@@ -27,6 +27,7 @@ func init() {
} }
var urlRenames = []struct{ in, out string }{ var urlRenames = []struct{ in, out string }{
{"URL", "URL"},
{"ParseURL", "Parse"}, {"ParseURL", "Parse"},
{"ParseURLReference", "ParseWithReference"}, {"ParseURLReference", "ParseWithReference"},
{"ParseQuery", "ParseQuery"}, {"ParseQuery", "ParseQuery"},
......
...@@ -18,6 +18,7 @@ import ( ...@@ -18,6 +18,7 @@ import (
) )
func f() { func f() {
var _ http.URL
http.ParseURL(a) http.ParseURL(a)
http.ParseURLReference(a) http.ParseURLReference(a)
http.ParseQuery(a) http.ParseQuery(a)
...@@ -33,6 +34,7 @@ func f() { ...@@ -33,6 +34,7 @@ func f() {
import "url" import "url"
func f() { func f() {
var _ url.URL
url.Parse(a) url.Parse(a)
url.ParseWithReference(a) url.ParseWithReference(a)
url.ParseQuery(a) url.ParseQuery(a)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment