mirror of
https://github.com/openharmony/third_party_rust_rust-url.git
synced 2026-07-01 21:04:00 -04:00
docs: Typo in example (#614)
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ versions.
|
||||
let url = Url::parse("http://github.com:80").unwrap();
|
||||
let stream = TcpStream::connect(url.socket_addrs(|| match url.scheme() {
|
||||
"socks5" => Some(1080),
|
||||
_ => Err(()),
|
||||
_ => None,
|
||||
})).unwrap();
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user