Browse Source

docs: Typo in example (#614)

Plecra 6 năm trước cách đây
mục cha
commit
b03895bd47
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      UPGRADING.md

+ 1 - 1
UPGRADING.md

@@ -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();
     ```