Skip to content

Commit 86b34bc

Browse files
committed
auto merge of #14263 : cmr/rust/termex, r=kballard
2 parents e1403e1 + 154dfb5 commit 86b34bc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/libterm/lib.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@
2323
//!
2424
//! fn main() {
2525
//! let mut t = term::stdout().unwrap();
26+
//!
2627
//! t.fg(term::color::GREEN).unwrap();
27-
//! println!("hello, ");
28+
//! (write!(t, "hello, ")).unwrap();
29+
//!
2830
//! t.fg(term::color::RED).unwrap();
29-
//! println!("world!");
31+
//! (writeln!(t, "world!")).unwrap();
32+
//!
3033
//! t.reset().unwrap();
3134
//! }
3235
//! ```

0 commit comments

Comments
 (0)