From 82e230c257a88b188e600a021e5fc3fc292ca0f0 Mon Sep 17 00:00:00 2001 From: travis-update-bot Date: Sun, 17 Jan 2016 12:27:53 +0000 Subject: [PATCH] Update blog to a6632af0b61a4b3ca86e3549e6d12c71a84d133d --- _posts/2015-10-23-printing-to-screen.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_posts/2015-10-23-printing-to-screen.md b/_posts/2015-10-23-printing-to-screen.md index fb95b21d..4ad6da3c 100644 --- a/_posts/2015-10-23-printing-to-screen.md +++ b/_posts/2015-10-23-printing-to-screen.md @@ -232,8 +232,7 @@ The `Ok(())` is just a `Ok` Result containing the `()` type. We can drop the `pu Now we can use Rust's built-in `write!`/`writeln!` formatting macros: ```rust -... -let mut writer = Writer::new(Color::Blue, Color::LightGreen); +let mut writer = Writer {...}; writer.write_byte(b'H'); writer.write_str("ello! "); write!(writer, "The numbers are {} and {}", 42, 1.0/3.0);