Small doc fixes

This commit is contained in:
Ticki 2016-03-16 08:52:09 +01:00
parent 80bbdb62df
commit 7d1d424c8a
3 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ use std::thread;
/// be buffered in a mpsc queue, which will eventually be read by the current thread.
///
/// Note that this will acquire the Mutex lock on the standard input, making all future stdin
/// construction hang the program.
/// construction hang the program until the reader is dropped.
pub fn async_stdin() -> AsyncReader {
let (send, recv) = mpsc::channel();

View File

@ -35,7 +35,7 @@ pub enum Color {
LightWhite,
/// 216-color (r, g, b ≤ 5) RGB.
Rgb(u8, u8, u8),
/// Grayscale (max value: 24)
/// Grayscale (max value: 24).
Grayscale(u8),
}

View File

@ -93,7 +93,7 @@ pub trait TermWrite {
b'm',
])
}
/// Set foreground color
/// Set foreground color.
fn color(&mut self, color: Color) -> io::Result<usize> {
let ansi = color.to_ansi_val();
self.csi(&[
@ -108,7 +108,7 @@ pub trait TermWrite {
b'm',
])
}
/// Set background color
/// Set background color.
fn bg_color(&mut self, color: Color) -> io::Result<usize> {
let ansi = color.to_ansi_val();
self.csi(&[