Skip to content

Commit d1329bf

Browse files
huonwalexcrichton
authored andcommitted
---
yaml --- r: 118352 b: refs/heads/try c: 14668f2 h: refs/heads/master v: v3
1 parent e2bddf5 commit d1329bf

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 3770c42a4959cbabc73da52abc7e3db96657974e
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: d6736a1440d42f6af967a8a20ab8d73522112b72
5-
refs/heads/try: 05810604c8f1ecebe35a8676df7371487ec80513
5+
refs/heads/try: 14668f2791c4893b84ae4111c52dee07c79faac7
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/libstd/io/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,18 @@ Some examples of obvious things you might want to do
8181
8282
* Make a simple TCP client connection and request
8383
84-
```rust,should_fail
84+
```rust
8585
# #![allow(unused_must_use)]
8686
use std::io::net::tcp::TcpStream;
8787
88+
# // connection doesn't fail if a server is running on 8080
89+
# // locally, we still want to be type checking this code, so lets
90+
# // just stop it running (#11576)
91+
# if false {
8892
let mut socket = TcpStream::connect("127.0.0.1", 8080).unwrap();
8993
socket.write(bytes!("GET / HTTP/1.0\n\n"));
9094
let response = socket.read_to_end();
95+
# }
9196
```
9297
9398
* Make a simple TCP server

0 commit comments

Comments
 (0)