File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ use crate::io;
1616use crate :: os:: hermit:: io:: OwnedFd ;
1717#[ cfg( all( not( target_os = "hermit" ) , not( target_os = "motor" ) ) ) ]
1818use crate :: os:: raw;
19- #[ cfg( all( doc, not( target_arch = "wasm32" ) ) ) ]
19+ #[ cfg( all( doc, not( any ( target_arch = "wasm32" , target_env = "sgx" ) ) ) ) ]
2020use crate :: os:: unix:: io:: AsFd ;
2121#[ cfg( unix) ]
2222use crate :: os:: unix:: io:: OwnedFd ;
Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ impl fmt::Debug for TcpStream {
6868///
6969/// SGX doesn't support DNS resolution but rather accepts hostnames in
7070/// the same place as socket addresses. So, to make e.g.
71- /// ```rust
72- /// TcpStream::connect("example.com:80")`
71+ /// ```rust,ignore (incomplete example)
72+ /// TcpStream::connect("example.com:80")
7373/// ```
7474/// work, the DNS lookup returns a special error (`NonIpSockAddr`) instead,
7575/// which contains the hostname being looked up. When `.to_socket_addrs()`
You can’t perform that action at this time.
0 commit comments