Rollup merge of #67943 - Stromberg90:patch-1, r=jonas-schievink
Missing module std in example.
This commit is contained in:
commit
05797b1c45
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue