diff --git a/src/libterm/lib.rs b/src/libterm/lib.rs index fb7d3888167..e6e8a1d4dc3 100644 --- a/src/libterm/lib.rs +++ b/src/libterm/lib.rs @@ -22,12 +22,12 @@ //! extern crate term; //! //! fn main() { -//! let mut t = term::stdout(); -//! t.fg(term::color::GREEN); +//! let mut t = term::stdout().unwrap(); +//! t.fg(term::color::GREEN).unwrap(); //! println!("hello, "); -//! t.fg(term::color::RED); +//! t.fg(term::color::RED).unwrap(); //! println!("world!"); -//! t.reset(); +//! t.reset().unwrap(); //! } //! ``` //!