Skip to content

Commit

Permalink
Rollup merge of rust-lang#52455 - felixrabe:patch-1, r=estebank
Browse files Browse the repository at this point in the history
Fix doc comment: use `?` instead of `.unwrap()`
  • Loading branch information
kennytm authored Jul 18, 2018
2 parents 47a1d6b + a65d535 commit d94a279
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 d94a279

Please sign in to comment.