Skip to content

Commit b03895b

Browse files
authored
docs: Typo in example (#614)
1 parent 9a75a29 commit b03895b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UPGRADING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ versions.
4646
let url = Url::parse("http://github.com:80").unwrap();
4747
let stream = TcpStream::connect(url.socket_addrs(|| match url.scheme() {
4848
"socks5" => Some(1080),
49-
_ => Err(()),
49+
_ => None,
5050
})).unwrap();
5151
```
5252

0 commit comments

Comments
 (0)