File tree 4 files changed +10
-10
lines changed
4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ Some examples of obvious things you might want to do
83
83
84
84
```rust
85
85
# #![allow(unused_must_use)]
86
- use std::io::net::tcp:: TcpStream;
86
+ use std::io::TcpStream;
87
87
88
88
# // connection doesn't fail if a server is running on 8080
89
89
# // locally, we still want to be type checking this code, so lets
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ use rt::rtio;
41
41
///
42
42
/// ```no_run
43
43
/// # #![allow(unused_must_use)]
44
- /// use std::io::net::tcp:: TcpStream;
44
+ /// use std::io::TcpStream;
45
45
///
46
46
/// let mut stream = TcpStream::connect("127.0.0.1", 34254);
47
47
///
@@ -162,7 +162,7 @@ impl TcpStream {
162
162
/// ```no_run
163
163
/// # #![allow(unused_must_use)]
164
164
/// use std::io::timer;
165
- /// use std::io::net::tcp:: TcpStream;
165
+ /// use std::io::TcpStream;
166
166
///
167
167
/// let mut stream = TcpStream::connect("127.0.0.1", 34254).unwrap();
168
168
/// let stream2 = stream.clone();
@@ -406,7 +406,7 @@ impl TcpAcceptor {
406
406
///
407
407
/// ```no_run
408
408
/// # #![allow(experimental)]
409
- /// use std::io::net::tcp:: TcpListener;
409
+ /// use std::io::TcpListener;
410
410
/// use std::io::{Listener, Acceptor, TimedOut};
411
411
///
412
412
/// let mut a = TcpListener::bind("127.0.0.1", 8482).listen().unwrap();
Original file line number Diff line number Diff line change @@ -476,8 +476,8 @@ impl Process {
476
476
///
477
477
/// ```no_run
478
478
/// # #![allow(experimental)]
479
- /// use std::io::process:: {Command, ProcessExit };
480
- /// use std::io::IoResult ;
479
+ /// use std::io::{Command, IoResult };
480
+ /// use std::io::process::ProcessExit ;
481
481
///
482
482
/// fn run_gracefully(prog: &str) -> IoResult<ProcessExit> {
483
483
/// let mut p = try!(Command::new("long-running-process").spawn());
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ impl Timer {
110
110
/// # Example
111
111
///
112
112
/// ```rust
113
- /// use std::io::timer:: Timer;
113
+ /// use std::io::Timer;
114
114
///
115
115
/// let mut timer = Timer::new().unwrap();
116
116
/// let ten_milliseconds = timer.oneshot(10);
@@ -122,7 +122,7 @@ impl Timer {
122
122
/// ```
123
123
///
124
124
/// ```rust
125
- /// use std::io::timer:: Timer;
125
+ /// use std::io::Timer;
126
126
///
127
127
/// // Incorrect, method chaining-style:
128
128
/// let mut five_ms = Timer::new().unwrap().oneshot(5);
@@ -152,7 +152,7 @@ impl Timer {
152
152
/// # Example
153
153
///
154
154
/// ```rust
155
- /// use std::io::timer:: Timer;
155
+ /// use std::io::Timer;
156
156
///
157
157
/// let mut timer = Timer::new().unwrap();
158
158
/// let ten_milliseconds = timer.periodic(10);
@@ -170,7 +170,7 @@ impl Timer {
170
170
/// ```
171
171
///
172
172
/// ```rust
173
- /// use std::io::timer:: Timer;
173
+ /// use std::io::Timer;
174
174
///
175
175
/// // Incorrect, method chaining-style.
176
176
/// let mut five_ms = Timer::new().unwrap().periodic(5);
You can’t perform that action at this time.
0 commit comments