Skip to content
Snippets Groups Projects
Commit 00f349ce authored by gwenn's avatar gwenn
Browse files

Fix Config doc.

parent bb502d7e
No related branches found
No related tags found
No related merge requests found
......@@ -30,18 +30,18 @@ fn main() {
Ok(line) => {
rl.add_history_entry(line.as_ref());
println!("Line: {}", line);
},
}
Err(ReadlineError::Interrupted) => {
println!("CTRL-C");
break
},
break;
}
Err(ReadlineError::Eof) => {
println!("CTRL-D");
break
},
break;
}
Err(err) => {
println!("Error: {:?}", err);
break
break;
}
}
}
......
......@@ -3,8 +3,7 @@ use std::default::Default;
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct Config {
/// When listing completion alternatives, only display
/// one screen of possibilities at a time.
/// Maximum number of entries in History.
max_history_size: usize,
history_duplicates: HistoryDuplicates,
history_ignore_space: bool,
......@@ -21,7 +20,7 @@ impl Config {
Builder::new()
}
/// Tell the maximum length for the history.
/// Tell the maximum length (i.e. number of entries) for the history.
pub fn max_history_size(&self) -> usize {
self.max_history_size
}
......
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