Skip to content

Commit

Permalink
Fix doc comment: use ? instead of .unwrap()
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrabe authored Jul 17, 2018
1 parent 2ddc0cb commit a65d535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/net/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub struct TcpStream(net_imp::TcpStream);
/// }
///
/// fn main() -> io::Result<()> {
/// let listener = TcpListener::bind("127.0.0.1:80").unwrap();
/// let listener = TcpListener::bind("127.0.0.1:80")?;
///
/// // accept connections and process them serially
/// for stream in listener.incoming() {
Expand Down

0 comments on commit a65d535

Please sign in to comment.