Skip to content

Commit a4da9ac

Browse files
committed
doc: add graves
1 parent 6d388da commit a4da9ac

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

src/libstd/io/stdio.rs

+23-23
Original file line numberDiff line numberDiff line change
@@ -133,30 +133,30 @@ fn handle_ebadf<T>(r: io::Result<T>, default: T) -> io::Result<T> {
133133
/// A handle to the standard input stream of a process.
134134
///
135135
/// 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
137137
/// (e.g. `.lines()`). Writes to this handle are otherwise locked with respect
138138
/// to other writes.
139139
///
140140
/// This handle implements the `Read` trait, but beware that concurrent reads
141141
/// of `Stdin` must be executed with care.
142142
///
143-
/// Created by the [io::stdin] method.
143+
/// Created by the [`io::stdin`] method.
144144
///
145-
/// [io::stdin]: fn.stdin.html
146-
/// [BufRead]: trait.BufRead.html
145+
/// [`io::stdin`]: fn.stdin.html
146+
/// [`BufRead`]: trait.BufRead.html
147147
#[stable(feature = "rust1", since = "1.0.0")]
148148
pub struct Stdin {
149149
inner: Arc<Mutex<BufReader<Maybe<StdinRaw>>>>,
150150
}
151151

152152
/// A locked reference to the `Stdin` handle.
153153
///
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.
156156
///
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
160160
#[stable(feature = "rust1", since = "1.0.0")]
161161
pub struct StdinLock<'a> {
162162
inner: MutexGuard<'a, BufReader<Maybe<StdinRaw>>>,
@@ -166,7 +166,7 @@ pub struct StdinLock<'a> {
166166
///
167167
/// Each handle returned is a reference to a shared global buffer whose access
168168
/// 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].
170170
///
171171
/// [lock]: struct.Stdin.html#method.lock
172172
///
@@ -228,7 +228,7 @@ impl Stdin {
228228
/// guard.
229229
///
230230
/// 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
232232
/// accessing the underlying data.
233233
///
234234
/// [Read]: trait.Read.html
@@ -241,9 +241,9 @@ impl Stdin {
241241
/// Locks this handle and reads a line of input into the specified buffer.
242242
///
243243
/// For detailed semantics of this method, see the documentation on
244-
/// [BufRead::read_line].
244+
/// [`BufRead::read_line`].
245245
///
246-
/// [BufRead::read_line]: trait.BufRead.html#method.read_line
246+
/// [`BufRead::read_line`]: trait.BufRead.html#method.read_line
247247
///
248248
/// # Examples
249249
///
@@ -326,9 +326,9 @@ const OUT_MAX: usize = ::usize::MAX;
326326
/// output stream. Access is also synchronized via a lock and explicit control
327327
/// over locking is available via the `lock` method.
328328
///
329-
/// Created by the [io::stdout] method.
329+
/// Created by the [`io::stdout`] method.
330330
///
331-
/// [io::stdout]: fn.stdout.html
331+
/// [`io::stdout`]: fn.stdout.html
332332
#[stable(feature = "rust1", since = "1.0.0")]
333333
pub struct Stdout {
334334
// FIXME: this should be LineWriter or BufWriter depending on the state of
@@ -339,11 +339,11 @@ pub struct Stdout {
339339

340340
/// A locked reference to the `Stdout` handle.
341341
///
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.
344344
///
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
347347
#[stable(feature = "rust1", since = "1.0.0")]
348348
pub struct StdoutLock<'a> {
349349
inner: ReentrantMutexGuard<'a, RefCell<LineWriter<Maybe<StdoutRaw>>>>,
@@ -441,9 +441,9 @@ impl<'a> Write for StdoutLock<'a> {
441441

442442
/// A handle to the standard error stream of a process.
443443
///
444-
/// For more information, see the [io::stderr] method.
444+
/// For more information, see the [`io::stderr`] method.
445445
///
446-
/// [io::stderr]: fn.stderr.html
446+
/// [`io::stderr`]: fn.stderr.html
447447
#[stable(feature = "rust1", since = "1.0.0")]
448448
pub struct Stderr {
449449
inner: Arc<ReentrantMutex<RefCell<Maybe<StderrRaw>>>>,
@@ -452,9 +452,9 @@ pub struct Stderr {
452452
/// A locked reference to the `Stderr` handle.
453453
///
454454
/// This handle implements the `Write` trait and is constructed via
455-
/// the [Stderr::lock] method.
455+
/// the [`Stderr::lock`] method.
456456
///
457-
/// [Stderr::lock]: struct.Stderr.html#method.lock
457+
/// [`Stderr::lock`]: struct.Stderr.html#method.lock
458458
#[stable(feature = "rust1", since = "1.0.0")]
459459
pub struct StderrLock<'a> {
460460
inner: ReentrantMutexGuard<'a, RefCell<Maybe<StderrRaw>>>,

0 commit comments

Comments
 (0)