Fix documentation formatting (#53)

This commit is contained in:
Steve Klabnik 2018-11-27 12:39:21 -05:00 committed by Timon
parent 3a2545d3ce
commit 387c088318

View File

@ -23,10 +23,10 @@ use Screen;
/// colored_terminal.set_bg(Color::Red); /// colored_terminal.set_bg(Color::Red);
/// // reset color to default /// // reset color to default
/// colored_terminal.reset(); /// colored_terminal.reset();
/// ```
/// ///
/// When you want to use 'color' on 'alternate screen' use the `Screen` type instead and pass it to the `color::from_screen()` function. /// When you want to use 'color' on 'alternate screen' use the `Screen` type instead and pass it to the `color::from_screen()` function.
/// By doing that styling actions will be performed on the alternate screen. /// By doing that styling actions will be performed on the alternate screen.
/// ```
pub struct TerminalColor<'stdout> { pub struct TerminalColor<'stdout> {
color: Box<ITerminalColor + Sync + Send>, color: Box<ITerminalColor + Sync + Send>,
stdout: Option<&'stdout Arc<TerminalOutput>>, stdout: Option<&'stdout Arc<TerminalOutput>>,