Fix cursive_run doc

This commit is contained in:
Alexandre Bury 2020-10-09 15:44:48 -07:00
parent 801fa8e54b
commit 03cd0d41da
2 changed files with 8 additions and 6 deletions

View File

@ -101,9 +101,9 @@ where
/// Returns `true` if an event or callback was received,
/// and `false` otherwise.
///
/// [1]: CursiveRun::run()
/// [2]: CursiveRun::step()
/// [3]: CursiveRun::post_events()
/// [1]: CursiveRunner::run()
/// [2]: CursiveRunner::step()
/// [3]: CursiveRunner::post_events()
pub fn process_events(&mut self) -> bool {
// Things are boring if nothing significant happened.
let mut boring = true;
@ -137,9 +137,9 @@ where
///
/// You should call this after [`process_events`][3].
///
/// [1]: Cursive::run()
/// [2]: Cursive::step()
/// [3]: Cursive::process_events()
/// [1]: CursiveRunner::run()
/// [2]: CursiveRunner::step()
/// [3]: CursiveRunner::process_events()
pub fn post_events(&mut self, received_something: bool) {
let boring = !received_something;
// How many times should we try if it's still boring?

View File

@ -222,8 +222,10 @@ use std::path::Path;
pub struct Theme {
/// Whether views in a StackView should have shadows.
pub shadow: bool,
/// How view borders should be drawn.
pub borders: BorderStyle,
/// What colors should be used through the application?
pub palette: Palette,
}