@@ -684,18 +684,16 @@ pub trait Octal {
684
684
///
685
685
/// The `Binary` trait should format its output as a number in binary.
686
686
///
687
- /// For primitive signed integers (`i8` to `i128`, and `isize`),
687
+ /// For primitive signed integers ([ `i8`] to [ `i128`] , and [ `isize`] ),
688
688
/// negative values are formatted as the two’s complement representation.
689
689
///
690
690
/// The alternate flag, `#`, adds a `0b` in front of the output.
691
691
///
692
692
/// For more information on formatters, see [the module-level documentation][module].
693
693
///
694
- /// [module]: ../../std/fmt/index.html
695
- ///
696
694
/// # Examples
697
695
///
698
- /// Basic usage with `i32`:
696
+ /// Basic usage with [ `i32`] :
699
697
///
700
698
/// ```
701
699
/// let x = 42; // 42 is '101010' in binary
@@ -725,6 +723,12 @@ pub trait Octal {
725
723
///
726
724
/// println!("l as binary is: {:b}", l);
727
725
/// ```
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
728
732
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
729
733
pub trait Binary {
730
734
/// Formats the value using the given formatter.
0 commit comments