Rollup merge of #67943 - Stromberg90:patch-1, r=jonas-schievink

Missing module std in example.
This commit is contained in:
Yuki Okushi 2020-01-07 13:46:15 +09:00 committed by GitHub
commit 05797b1c45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,14 +63,13 @@ pub struct TcpStream(net_imp::TcpStream);
/// # Examples
///
/// ```no_run
/// # use std::io;
/// use std::net::{TcpListener, TcpStream};
///
/// fn handle_client(stream: TcpStream) {
/// // ...
/// }
///
/// fn main() -> io::Result<()> {
/// fn main() -> std::io::Result<()> {
/// let listener = TcpListener::bind("127.0.0.1:80")?;
///
/// // accept connections and process them serially