Skip to content

Commit 327cd0d

Browse files
Rollup merge of rust-lang#44836 - GuillaumeGomez:fmt-missing-links, r=QuietMisdreavus
Add missing links in fmt module r? @rust-lang/docs
2 parents 570f1ce + d5d41f2 commit 327cd0d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/libcore/fmt/mod.rs

+8-4
Original file line numberDiff line numberDiff line change
@@ -488,13 +488,14 @@ impl<'a> Display for Arguments<'a> {
488488
/// The origin is: Point { x: 0, y: 0 }
489489
/// ```
490490
///
491-
/// There are a number of `debug_*` methods on `Formatter` to help you with manual
491+
/// There are a number of `debug_*` methods on [`Formatter`] to help you with manual
492492
/// implementations, such as [`debug_struct`][debug_struct].
493493
///
494494
/// `Debug` implementations using either `derive` or the debug builder API
495-
/// on `Formatter` support pretty printing using the alternate flag: `{:#?}`.
495+
/// on [`Formatter`] support pretty printing using the alternate flag: `{:#?}`.
496496
///
497497
/// [debug_struct]: ../../std/fmt/struct.Formatter.html#method.debug_struct
498+
/// [`Formatter`]: ../../std/fmt/struct.Formatter.html
498499
///
499500
/// Pretty printing with `#?`:
500501
///
@@ -1321,8 +1322,11 @@ impl<'a> Formatter<'a> {
13211322
self.flags & (1 << FlagV1::SignAwareZeroPad as u32) != 0
13221323
}
13231324

1324-
/// Creates a `DebugStruct` builder designed to assist with creation of
1325-
/// `fmt::Debug` implementations for structs.
1325+
/// Creates a [`DebugStruct`] builder designed to assist with creation of
1326+
/// [`fmt::Debug`] implementations for structs.
1327+
///
1328+
/// [`DebugStruct`]: ../../std/fmt/struct.DebugStruct.html
1329+
/// [`fmt::Debug`]: ../../std/fmt/trait.Debug.html
13261330
///
13271331
/// # Examples
13281332
///

0 commit comments

Comments
 (0)