Skip to content

Commit 22e4295

Browse files
committed
Fix documentation links to Write
1 parent 9dcfc98 commit 22e4295

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

library/core/src/io/cursor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use crate::io::{self, ErrorKind, IoSlice, SeekFrom, Write};
2222
/// [bytes]: crate::slice "slice"
2323
/// [`File`]: ../../std/fs/struct.File.html
2424
/// [`Read`]: ../../std/io/trait.Read.html
25-
/// [`Write`]: ../../std/io/trait.Write.html
25+
/// [`Write`]: crate::io::Write
2626
/// [`Seek`]: crate::io::Seek
2727
/// [Vec]: ../../alloc/vec/struct.Vec.html
2828
///

library/core/src/io/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pub type Result<T> = result::Result<T, Error>;
7777
/// [`ErrorKind`].
7878
///
7979
/// [Read]: ../../std/io/trait.Read.html
80-
/// [Write]: ../../std/io/trait.Write.html
80+
/// [Write]: crate::io::Write
8181
/// [Seek]: crate::io::Seek
8282
#[stable(feature = "rust1", since = "1.0.0")]
8383
#[rustc_has_incoherent_inherent_impls]
@@ -847,7 +847,7 @@ pub enum ErrorKind {
847847
/// particular number of bytes but only a smaller number of bytes could be
848848
/// written.
849849
///
850-
/// [write]: ../../std/io/trait.Write.html#tymethod.write
850+
/// [write]: crate::io::Write::write
851851
/// [`Ok(0)`]: Ok
852852
#[stable(feature = "rust1", since = "1.0.0")]
853853
WriteZero,

library/core/src/io/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub use self::{
5454
///
5555
/// [file]: ../../std/fs/struct.File.html
5656
/// [arc]: ../../alloc/sync/struct.Arc.html
57-
/// [`Write`]: ../../std/io/trait.Write.html
57+
/// [`Write`]: crate::io::Write
5858
/// [`Seek`]: crate::io::Seek
5959
#[doc(hidden)]
6060
#[unstable(feature = "core_io_internals", reason = "exposed only for libstd", issue = "none")]

library/core/src/io/util.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::{cmp, fmt};
44
/// `Empty` ignores any data written via [`Write`], and will always be empty
55
/// (returning zero bytes) when read via [`Read`].
66
///
7-
/// [`Write`]: ../../std/io/trait.Write.html
7+
/// [`Write`]: crate::io::Write
88
/// [`Read`]: ../../std/io/trait.Read.html
99
///
1010
/// This struct is generally created by calling [`empty()`]. Please
@@ -129,7 +129,7 @@ impl Seek for Empty {
129129
/// [`Ok(buf.len())`]: Ok
130130
/// [`Ok(0)`]: Ok
131131
///
132-
/// [`write`]: ../../std/io/trait.Write.html#tymethod.write
132+
/// [`write`]: crate::io::Write::write
133133
/// [`read`]: ../../std/io/trait.Read.html#tymethod.read
134134
///
135135
/// # Examples
@@ -303,7 +303,7 @@ impl Write for &Sink {
303303
/// All calls to [`write`] on the returned instance will return [`Ok(buf.len())`]
304304
/// and the contents of the buffer will not be inspected.
305305
///
306-
/// [`write`]: ../../std/io/trait.Write.html#tymethod.write
306+
/// [`write`]: crate::io::Write::write
307307
/// [`Ok(buf.len())`]: Ok
308308
///
309309
/// # Examples

0 commit comments

Comments
 (0)