@@ -133,30 +133,30 @@ fn handle_ebadf<T>(r: io::Result<T>, default: T) -> io::Result<T> {
133
133
/// A handle to the standard input stream of a process.
134
134
///
135
135
/// Each handle is a shared reference to a global buffer of input data to this
136
- /// process. A handle can be `lock`'d to gain full access to [BufRead] methods
136
+ /// process. A handle can be `lock`'d to gain full access to [` BufRead` ] methods
137
137
/// (e.g. `.lines()`). Writes to this handle are otherwise locked with respect
138
138
/// to other writes.
139
139
///
140
140
/// This handle implements the `Read` trait, but beware that concurrent reads
141
141
/// of `Stdin` must be executed with care.
142
142
///
143
- /// Created by the [io::stdin] method.
143
+ /// Created by the [` io::stdin` ] method.
144
144
///
145
- /// [io::stdin]: fn.stdin.html
146
- /// [BufRead]: trait.BufRead.html
145
+ /// [` io::stdin` ]: fn.stdin.html
146
+ /// [` BufRead` ]: trait.BufRead.html
147
147
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
148
148
pub struct Stdin {
149
149
inner : Arc < Mutex < BufReader < Maybe < StdinRaw > > > > ,
150
150
}
151
151
152
152
/// A locked reference to the `Stdin` handle.
153
153
///
154
- /// This handle implements both the [Read] and [BufRead] traits, and
155
- /// is constructed via the [Stdin::lock] method.
154
+ /// This handle implements both the [` Read` ] and [` BufRead` ] traits, and
155
+ /// is constructed via the [` Stdin::lock` ] method.
156
156
///
157
- /// [Read]: trait.Read.html
158
- /// [BufRead]: trait.BufRead.html
159
- /// [Stdin::lock]: struct.Stdin.html#method.lock
157
+ /// [` Read` ]: trait.Read.html
158
+ /// [` BufRead` ]: trait.BufRead.html
159
+ /// [` Stdin::lock` ]: struct.Stdin.html#method.lock
160
160
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
161
161
pub struct StdinLock < ' a > {
162
162
inner : MutexGuard < ' a , BufReader < Maybe < StdinRaw > > > ,
@@ -166,7 +166,7 @@ pub struct StdinLock<'a> {
166
166
///
167
167
/// Each handle returned is a reference to a shared global buffer whose access
168
168
/// is synchronized via a mutex. If you need more explicit control over
169
- /// locking, see the [lock() method][lock].
169
+ /// locking, see the [` lock() method` ][lock].
170
170
///
171
171
/// [lock]: struct.Stdin.html#method.lock
172
172
///
@@ -228,7 +228,7 @@ impl Stdin {
228
228
/// guard.
229
229
///
230
230
/// The lock is released when the returned lock goes out of scope. The
231
- /// returned guard also implements the [Read] and [BufRead] traits for
231
+ /// returned guard also implements the [` Read` ] and [` BufRead` ] traits for
232
232
/// accessing the underlying data.
233
233
///
234
234
/// [Read]: trait.Read.html
@@ -241,9 +241,9 @@ impl Stdin {
241
241
/// Locks this handle and reads a line of input into the specified buffer.
242
242
///
243
243
/// For detailed semantics of this method, see the documentation on
244
- /// [BufRead::read_line].
244
+ /// [` BufRead::read_line` ].
245
245
///
246
- /// [BufRead::read_line]: trait.BufRead.html#method.read_line
246
+ /// [` BufRead::read_line` ]: trait.BufRead.html#method.read_line
247
247
///
248
248
/// # Examples
249
249
///
@@ -326,9 +326,9 @@ const OUT_MAX: usize = ::usize::MAX;
326
326
/// output stream. Access is also synchronized via a lock and explicit control
327
327
/// over locking is available via the `lock` method.
328
328
///
329
- /// Created by the [io::stdout] method.
329
+ /// Created by the [` io::stdout` ] method.
330
330
///
331
- /// [io::stdout]: fn.stdout.html
331
+ /// [` io::stdout` ]: fn.stdout.html
332
332
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
333
333
pub struct Stdout {
334
334
// FIXME: this should be LineWriter or BufWriter depending on the state of
@@ -339,11 +339,11 @@ pub struct Stdout {
339
339
340
340
/// A locked reference to the `Stdout` handle.
341
341
///
342
- /// This handle implements the [Write] trait, and is constructed via
343
- /// the [Stdout::lock] method.
342
+ /// This handle implements the [` Write` ] trait, and is constructed via
343
+ /// the [` Stdout::lock` ] method.
344
344
///
345
- /// [Write]: trait.Write.html
346
- /// [Stdout::lock]: struct.Stdout.html#method.lock
345
+ /// [` Write` ]: trait.Write.html
346
+ /// [` Stdout::lock` ]: struct.Stdout.html#method.lock
347
347
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
348
348
pub struct StdoutLock < ' a > {
349
349
inner : ReentrantMutexGuard < ' a , RefCell < LineWriter < Maybe < StdoutRaw > > > > ,
@@ -441,9 +441,9 @@ impl<'a> Write for StdoutLock<'a> {
441
441
442
442
/// A handle to the standard error stream of a process.
443
443
///
444
- /// For more information, see the [io::stderr] method.
444
+ /// For more information, see the [` io::stderr` ] method.
445
445
///
446
- /// [io::stderr]: fn.stderr.html
446
+ /// [` io::stderr` ]: fn.stderr.html
447
447
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
448
448
pub struct Stderr {
449
449
inner : Arc < ReentrantMutex < RefCell < Maybe < StderrRaw > > > > ,
@@ -452,9 +452,9 @@ pub struct Stderr {
452
452
/// A locked reference to the `Stderr` handle.
453
453
///
454
454
/// This handle implements the `Write` trait and is constructed via
455
- /// the [Stderr::lock] method.
455
+ /// the [` Stderr::lock` ] method.
456
456
///
457
- /// [Stderr::lock]: struct.Stderr.html#method.lock
457
+ /// [` Stderr::lock` ]: struct.Stderr.html#method.lock
458
458
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
459
459
pub struct StderrLock < ' a > {
460
460
inner : ReentrantMutexGuard < ' a , RefCell < Maybe < StderrRaw > > > ,
0 commit comments