Rollup merge of #52455 - felixrabe:patch-1, r=estebank

Fix doc comment: use `?` instead of `.unwrap()`
This commit is contained in:
kennytm 2018-07-18 22:34:59 +08:00 committed by GitHub
commit d94a279538
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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() {