1
Fork 0

Small changes to fix documentation auto compile issues

This commit is contained in:
Charles Hathaway 2018-10-11 15:35:48 -04:00
parent c514b627e4
commit 4530b8c56c
No known key found for this signature in database
GPG key ID: 31A4C28E20B425BB

View file

@ -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")]