We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f291df commit 6e0c7a3Copy full SHA for 6e0c7a3
1 file changed
examples_test.go
@@ -157,11 +157,11 @@ func ExampleParseURL() {
157
c := in.ParseTheseOrExit("-u", "https://pkg.go.dev/github.com/steverusso/cli#ParseURL")
158
fmt.Println(cli.Get[*url.URL](c, "u"))
159
160
- _, err := in.ParseThese("-u", "b@d://.com")
+ _, err := in.ParseThese("-u", "ftp://usr:pass[wd]@svr.com")
161
fmt.Println(err)
162
// Output:
163
// 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
+ // parsing option 'u': parse "ftp://usr:pass[wd]@svr.com": net/url: invalid userinfo
165
}
166
167
func ExampleParseDuration() {
0 commit comments