Skip to content

Commit 1fe15b9

Browse files
committed
Fix example
1 parent 26238c9 commit 1fe15b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libterm/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
//! extern crate term;
2323
//!
2424
//! fn main() {
25-
//! let mut t = term::stdout();
26-
//! t.fg(term::color::GREEN);
25+
//! let mut t = term::stdout().unwrap();
26+
//! t.fg(term::color::GREEN).unwrap();
2727
//! println!("hello, ");
28-
//! t.fg(term::color::RED);
28+
//! t.fg(term::color::RED).unwrap();
2929
//! println!("world!");
30-
//! t.reset();
30+
//! t.reset().unwrap();
3131
//! }
3232
//! ```
3333
//!

0 commit comments

Comments
 (0)