term: update example to be right (thanks @SiegeLord)
This commit is contained in:
parent
3da5a5cd18
commit
154dfb59fe
@ -23,10 +23,13 @@
|
||||
//!
|
||||
//! fn main() {
|
||||
//! let mut t = term::stdout().unwrap();
|
||||
//!
|
||||
//! t.fg(term::color::GREEN).unwrap();
|
||||
//! println!("hello, ");
|
||||
//! (write!(t, "hello, ")).unwrap();
|
||||
//!
|
||||
//! t.fg(term::color::RED).unwrap();
|
||||
//! println!("world!");
|
||||
//! (writeln!(t, "world!")).unwrap();
|
||||
//!
|
||||
//! t.reset().unwrap();
|
||||
//! }
|
||||
//! ```
|
||||
|
Loading…
Reference in New Issue
Block a user