Skip to content

Commit a65d535

Browse files
authored
Fix doc comment: use ? instead of .unwrap()
1 parent 2ddc0cb commit a65d535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/libstd/net/tcp.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub struct TcpStream(net_imp::TcpStream);
8181
/// }
8282
///
8383
/// fn main() -> io::Result<()> {
84-
/// let listener = TcpListener::bind("127.0.0.1:80").unwrap();
84+
/// let listener = TcpListener::bind("127.0.0.1:80")?;
8585
///
8686
/// // accept connections and process them serially
8787
/// for stream in listener.incoming() {

0 commit comments

Comments
 (0)