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.
1 parent be5c260 commit 16f3467Copy full SHA for 16f3467
README.md
@@ -13,12 +13,12 @@ Here is an example illustrating a common usage:
13
```Rust
14
use ada_url::Url;
15
fn main() {
16
- let u = Url::parse("http://www.google:8080/love#drug", None).expect("bad url");
+ 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("9999");
+ u.set_port(Some("9999"));
22
23
}
24
```
0 commit comments