Small changes to fix documentation auto compile issues
This commit is contained in:
parent
c514b627e4
commit
4530b8c56c
1 changed files with 2 additions and 1 deletions
|
@ -43,11 +43,12 @@ use time::Duration;
|
||||||
/// use std::io::prelude::*;
|
/// use std::io::prelude::*;
|
||||||
/// use std::net::TcpStream;
|
/// use std::net::TcpStream;
|
||||||
///
|
///
|
||||||
/// {
|
/// fn main() -> std::io::Result<()> {
|
||||||
/// let mut stream = TcpStream::connect("127.0.0.1:34254")?;
|
/// let mut stream = TcpStream::connect("127.0.0.1:34254")?;
|
||||||
///
|
///
|
||||||
/// stream.write(&[1])?;
|
/// stream.write(&[1])?;
|
||||||
/// stream.read(&mut [0; 128])?;
|
/// stream.read(&mut [0; 128])?;
|
||||||
|
/// Ok(())
|
||||||
/// } // the stream is closed here
|
/// } // the stream is closed here
|
||||||
/// ```
|
/// ```
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue