diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-01-07 13:46:15 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-07 13:46:15 +0900 |
| commit | 05797b1c45e0895bb8caa57972eb9e73760226cf (patch) | |
| tree | 551fa2fd02b9b7e075bf573128fefe3f7b389180 /src/libstd | |
| parent | b065031096a6e26df985a96cc98f0e5cdfc1c6e1 (diff) | |
| parent | a852941829dc835e9fb0f59b2c1e19aa1439211d (diff) | |
| download | rust-05797b1c45e0895bb8caa57972eb9e73760226cf.tar.gz rust-05797b1c45e0895bb8caa57972eb9e73760226cf.zip | |
Rollup merge of #67943 - Stromberg90:patch-1, r=jonas-schievink
Missing module std in example.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/net/tcp.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstd/net/tcp.rs b/src/libstd/net/tcp.rs index c33f98bdd83..5023d692408 100644 --- a/src/libstd/net/tcp.rs +++ b/src/libstd/net/tcp.rs @@ -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 |
