@@ -456,7 +456,9 @@ impl Display for Arguments<'_> {
456
456
///
457
457
/// When used with the alternate format specifier `#?`, the output is pretty-printed.
458
458
///
459
- /// For more information on formatters, see [the module-level documentation][self].
459
+ /// For more information on formatters, see [the module-level documentation][module].
460
+ ///
461
+ /// [module]: ../../std/fmt/index.html
460
462
///
461
463
/// This trait can be used with `#[derive]` if all fields implement `Debug`. When
462
464
/// `derive`d for structs, it will use the name of the `struct`, then `{`, then a
@@ -602,7 +604,9 @@ pub use macros::Debug;
602
604
/// `Display` is similar to [`Debug`], but `Display` is for user-facing
603
605
/// output, and so cannot be derived.
604
606
///
605
- /// For more information on formatters, see [the module-level documentation][self].
607
+ /// For more information on formatters, see [the module-level documentation][module].
608
+ ///
609
+ /// [module]: ../../std/fmt/index.html
606
610
///
607
611
/// # Examples
608
612
///
@@ -674,7 +678,9 @@ pub trait Display {
674
678
///
675
679
/// The alternate flag, `#`, adds a `0o` in front of the output.
676
680
///
677
- /// For more information on formatters, see [the module-level documentation][self].
681
+ /// For more information on formatters, see [the module-level documentation][module].
682
+ ///
683
+ /// [module]: ../../std/fmt/index.html
678
684
///
679
685
/// # Examples
680
686
///
@@ -726,7 +732,9 @@ pub trait Octal {
726
732
///
727
733
/// The alternate flag, `#`, adds a `0b` in front of the output.
728
734
///
729
- /// For more information on formatters, see [the module-level documentation][self].
735
+ /// For more information on formatters, see [the module-level documentation][module].
736
+ ///
737
+ /// [module]: ../../std/fmt/index.html
730
738
///
731
739
/// # Examples
732
740
///
@@ -782,7 +790,9 @@ pub trait Binary {
782
790
///
783
791
/// The alternate flag, `#`, adds a `0x` in front of the output.
784
792
///
785
- /// For more information on formatters, see [the module-level documentation][self].
793
+ /// For more information on formatters, see [the module-level documentation][module].
794
+ ///
795
+ /// [module]: ../../std/fmt/index.html
786
796
///
787
797
/// # Examples
788
798
///
@@ -835,7 +845,9 @@ pub trait LowerHex {
835
845
///
836
846
/// The alternate flag, `#`, adds a `0x` in front of the output.
837
847
///
838
- /// For more information on formatters, see [the module-level documentation][self].
848
+ /// For more information on formatters, see [the module-level documentation][module].
849
+ ///
850
+ /// [module]: ../../std/fmt/index.html
839
851
///
840
852
/// # Examples
841
853
///
@@ -883,7 +895,9 @@ pub trait UpperHex {
883
895
/// The `Pointer` trait should format its output as a memory location. This is commonly presented
884
896
/// as hexadecimal.
885
897
///
886
- /// For more information on formatters, see [the module-level documentation][self].
898
+ /// For more information on formatters, see [the module-level documentation][module].
899
+ ///
900
+ /// [module]: ../../std/fmt/index.html
887
901
///
888
902
/// # Examples
889
903
///
@@ -932,7 +946,9 @@ pub trait Pointer {
932
946
///
933
947
/// The `LowerExp` trait should format its output in scientific notation with a lower-case `e`.
934
948
///
935
- /// For more information on formatters, see [the module-level documentation][self].
949
+ /// For more information on formatters, see [the module-level documentation][module].
950
+ ///
951
+ /// [module]: ../../std/fmt/index.html
936
952
///
937
953
/// # Examples
938
954
///
@@ -981,7 +997,9 @@ pub trait LowerExp {
981
997
///
982
998
/// The `UpperExp` trait should format its output in scientific notation with an upper-case `E`.
983
999
///
984
- /// For more information on formatters, see [the module-level documentation][self].
1000
+ /// For more information on formatters, see [the module-level documentation][module].
1001
+ ///
1002
+ /// [module]: ../../std/fmt/index.html
985
1003
///
986
1004
/// # Examples
987
1005
///
0 commit comments