77//!
88//! # Formatting log records
99//!
10- //! The format used to print log records can be customised using the [`Builder. format`]
10+ //! The format used to print log records can be customised using the [`Builder:: format`]
1111//! method.
1212//! Custom formats can apply different color and weight to printed values using
1313//! [`Style`] builders.
3131//!
3232//! [`Formatter`]: struct.Formatter.html
3333//! [`Style`]: struct.Style.html
34- //! [`Builder. format`]: ../struct.Builder.html#method.format
34+ //! [`Builder:: format`]: ../struct.Builder.html#method.format
3535//! [`Write`]: https://doc.rust-lang.org/stable/std/io/trait.Write.html
3636
3737use std:: io:: prelude:: * ;
@@ -72,7 +72,7 @@ pub struct Formatter {
7272
7373/// A set of styles to apply to the terminal output.
7474///
75- /// Call [`Formatter. style`] to get a `Style` and use the builder methods to
75+ /// Call [`Formatter:: style`] to get a `Style` and use the builder methods to
7676/// set styling properties, like [color] and [weight].
7777/// To print a value using the style, wrap it in a call to [`value`] when the log
7878/// record is formatted.
@@ -118,9 +118,9 @@ pub struct Formatter {
118118/// });
119119/// ```
120120///
121- /// [`Formatter. style`]: struct.Formatter.html#method.style
122- /// [color]: #method.color
123- /// [weight]: #method.weight
121+ /// [`Formatter:: style`]: struct.Formatter.html#method.style
122+ /// [color]: #method.set_color
123+ /// [weight]: #method.set_bold
124124/// [`value`]: #method.value
125125#[ derive( Clone ) ]
126126pub struct Style {
@@ -130,9 +130,9 @@ pub struct Style {
130130
131131/// A value that can be printed using the given styles.
132132///
133- /// It is the result of calling [`Style. value`].
133+ /// It is the result of calling [`Style:: value`].
134134///
135- /// [`Style. value`]: struct.Style.html#method.value
135+ /// [`Style:: value`]: struct.Style.html#method.value
136136pub struct StyledValue < ' a , T > {
137137 style : & ' a Style ,
138138 value : T ,
0 commit comments