mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-08 18:30:40 +00:00
Update doc comments
This commit is contained in:
parent
0ab2c6db07
commit
89ec140f41
@ -16,7 +16,7 @@
|
||||
//! ## Views
|
||||
//!
|
||||
//! Views are the main components of a cursive interface.
|
||||
//! The [`view`](./view/index.html) module contains many views to use in your
|
||||
//! The [`views`](./views/index.html) module contains many views to use in your
|
||||
//! application; if you don't find what you need, you may also implement the
|
||||
//! [`View`](view/trait.View.html) trait and build your own.
|
||||
//!
|
||||
@ -33,12 +33,13 @@
|
||||
//! ```no_run
|
||||
//! extern crate cursive;
|
||||
//!
|
||||
//! use cursive::*;
|
||||
//! use cursive::Cursive;
|
||||
//! use cursive::views::TextView;
|
||||
//!
|
||||
//! fn main() {
|
||||
//! let mut siv = Cursive::new();
|
||||
//!
|
||||
//! siv.add_layer(views::TextView::new("Hello World!\nPress q to quit."));
|
||||
//! siv.add_layer(TextView::new("Hello World!\nPress q to quit."));
|
||||
//!
|
||||
//! siv.add_global_callback('q', |s| s.quit());
|
||||
//!
|
||||
@ -54,6 +55,8 @@
|
||||
//!
|
||||
//! One solution is to redirect stderr to a file when running the application,
|
||||
//! and log to it instead of stdout.
|
||||
//!
|
||||
//! Or you can use gdb as usual.
|
||||
#![deny(missing_docs)]
|
||||
|
||||
extern crate toml;
|
||||
|
Loading…
Reference in New Issue
Block a user