We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Result
1 parent 16f3467 commit 032b8f4Copy full SHA for 032b8f4
README.md
@@ -12,14 +12,16 @@ Here is an example illustrating a common usage:
12
13
```Rust
14
use ada_url::Url;
15
-fn main() {
+fn main() -> Result<(), ()> {
16
let mut u = Url::parse("http://www.google:8080/love#drug", None).expect("bad url");
17
println!("port: {:?}", u.port());
18
println!("hash: {:?}", u.hash());
19
println!("pathname: {:?}", u.pathname());
20
println!("href: {:?}", u.href());
21
- u.set_port(Some("9999"));
+ u.set_port(Some("9999"))?;
22
23
+
24
+ Ok(())
25
}
26
```
27
0 commit comments