Skip to content
Snippets Groups Projects
Commit 7d1d424c authored by Ticki's avatar Ticki
Browse files

Small doc fixes

parent 80bbdb62
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
......@@ -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),
}
......
......@@ -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(&[
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment