Skip to content

Commit 4530b8c

Browse files
author
Charles Hathaway
committed
Small changes to fix documentation auto compile issues
1 parent c514b62 commit 4530b8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/libstd/net/tcp.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@ use time::Duration;
4343
/// use std::io::prelude::*;
4444
/// use std::net::TcpStream;
4545
///
46-
/// {
46+
/// fn main() -> std::io::Result<()> {
4747
/// let mut stream = TcpStream::connect("127.0.0.1:34254")?;
4848
///
4949
/// stream.write(&[1])?;
5050
/// stream.read(&mut [0; 128])?;
51+
/// Ok(())
5152
/// } // the stream is closed here
5253
/// ```
5354
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)