auto merge of #14263 : cmr/rust/termex, r=kballard

This commit is contained in:
bors 2014-05-18 16:31:31 -07:00
commit 86b34bca0f

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