Skip to content

Commit 6e0c7a3

Browse files
committed
docs: use invalid chaaracter in bad url example
1 parent 7f291df commit 6e0c7a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ func ExampleParseURL() {
157157
c := in.ParseTheseOrExit("-u", "https://pkg.go.dev/github.com/steverusso/cli#ParseURL")
158158
fmt.Println(cli.Get[*url.URL](c, "u"))
159159

160-
_, err := in.ParseThese("-u", "b@d://.com")
160+
_, err := in.ParseThese("-u", "ftp://usr:pass[wd]@svr.com")
161161
fmt.Println(err)
162162
// Output:
163163
// https://pkg.go.dev/github.com/steverusso/cli#ParseURL
164-
// parsing option 'u': parse "b@d://.com": first path segment in URL cannot contain colon
164+
// parsing option 'u': parse "ftp://usr:pass[wd]@svr.com": net/url: invalid userinfo
165165
}
166166

167167
func ExampleParseDuration() {

0 commit comments

Comments
 (0)