From a6632af0b61a4b3ca86e3549e6d12c71a84d133d Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sun, 17 Jan 2016 13:23:27 +0100 Subject: [PATCH] Remove call to non-existent Writer::new The creation of a `Writer` is the same as before, so we omit it. Fixes #118 --- 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);