Skip to content

Commit bda5a45

Browse files
Add missing links
1 parent 29f5c69 commit bda5a45

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
@@ -684,18 +684,16 @@ pub trait Octal {
684684
///
685685
/// The `Binary` trait should format its output as a number in binary.
686686
///
687-
/// For primitive signed integers (`i8` to `i128`, and `isize`),
687+
/// For primitive signed integers ([`i8`] to [`i128`], and [`isize`]),
688688
/// negative values are formatted as the two’s complement representation.
689689
///
690690
/// The alternate flag, `#`, adds a `0b` in front of the output.
691691
///
692692
/// For more information on formatters, see [the module-level documentation][module].
693693
///
694-
/// [module]: ../../std/fmt/index.html
695-
///
696694
/// # Examples
697695
///
698-
/// Basic usage with `i32`:
696+
/// Basic usage with [`i32`]:
699697
///
700698
/// ```
701699
/// let x = 42; // 42 is '101010' in binary
@@ -725,6 +723,12 @@ pub trait Octal {
725723
///
726724
/// println!("l as binary is: {:b}", l);
727725
/// ```
726+
///
727+
/// [module]: ../../std/fmt/index.html
728+
/// [`i8`]: ../../std/primitive.i8.html
729+
/// [`i128`]: ../../std/primitive.i128.html
730+
/// [`isize`]: ../../std/primitive.isize.html
731+
/// [`i32`]: ../../std/primitive.i32.html
728732
#[stable(feature = "rust1", since = "1.0.0")]
729733
pub trait Binary {
730734
/// Formats the value using the given formatter.

0 commit comments

Comments
 (0)