Skip to content

Commit 6c9e857

Browse files
authoredOct 5, 2020
Rollup merge of #75853 - LeSeulArtichaut:core-intra-docs-3, r=jyn514
Use more intra-doc-links in `core::fmt` This is a follow-up to #75819, which encountered some broken links due to #75176, so this PR contains the links that are blocked on #75176. r? @jyn514
2 parents beb5ae4 + 17d3c0a commit 6c9e857

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎library/core/src/fmt/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ pub struct Error;
102102
/// library. The [`write!`] macro accepts an instance of [`io::Write`], and the
103103
/// [`io::Write`] trait is favored over implementing this trait.
104104
///
105-
/// [`write!`]: ../../std/macro.write.html
105+
/// [`write!`]: crate::write!
106106
/// [`io::Write`]: ../../std/io/trait.Write.html
107107
#[stable(feature = "rust1", since = "1.0.0")]
108108
pub trait Write {
@@ -1058,7 +1058,7 @@ pub trait UpperExp {
10581058
/// assert_eq!(output, "Hello world!");
10591059
/// ```
10601060
///
1061-
/// [`write!`]: ../../std/macro.write.html
1061+
/// [`write!`]: crate::write!
10621062
#[stable(feature = "rust1", since = "1.0.0")]
10631063
pub fn write(output: &mut dyn Write, args: Arguments<'_>) -> Result {
10641064
let mut formatter = Formatter {
@@ -1886,7 +1886,7 @@ impl<'a> Formatter<'a> {
18861886
/// assert_eq!(format!("{:?}", Foo(vec![10, 11])), "{10, 11}");
18871887
/// ```
18881888
///
1889-
/// [`format_args!`]: ../../std/macro.format_args.html
1889+
/// [`format_args!`]: crate::format_args
18901890
///
18911891
/// In this more complex example, we use [`format_args!`] and `.debug_set()`
18921892
/// to build a list of match arms:

0 commit comments

Comments
 (0)
Please sign in to comment.