Skip to content

Commit

Permalink
Small changes to fix documentation auto compile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Hathaway committed Oct 11, 2018
1 parent c514b62 commit 4530b8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libstd/net/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ use time::Duration;
/// use std::io::prelude::*;
/// use std::net::TcpStream;
///
/// {
/// fn main() -> std::io::Result<()> {
/// let mut stream = TcpStream::connect("127.0.0.1:34254")?;
///
/// stream.write(&[1])?;
/// stream.read(&mut [0; 128])?;
/// Ok(())
/// } // the stream is closed here
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
Expand Down

0 comments on commit 4530b8c

Please sign in to comment.