term: update example to be right (thanks @SiegeLord)

This commit is contained in:
Corey Richardson 2014-05-17 11:53:38 -07:00
parent 3da5a5cd18
commit 154dfb59fe

View File

@ -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();
//! }
//! ```