Skip to content

Commit d94a279

Browse files
authored
Rollup merge of rust-lang#52455 - felixrabe:patch-1, r=estebank
Fix doc comment: use `?` instead of `.unwrap()`
2 parents 47a1d6b + a65d535 commit d94a279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/net/tcp.rs

Lines changed: 1 addition & 1 deletion
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)