From 8c6dd92b4cdcee07535b5052054e175f7a00b7ec Mon Sep 17 00:00:00 2001 From: yamadapc Date: Thu, 31 Jul 2014 18:32:56 -0300 Subject: [PATCH] Update the README example to use `cwrite..`. This closes #5 and encourages people to use the portable API. Just to keep things in sync with dub, I'm also tagging this as v1.0.1. --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 60dc19a..ce265ea 100644 --- a/README.md +++ b/README.md @@ -15,12 +15,14 @@ This package is registered in the dub registry as ## Usage ```d -import std.stdio; -import colorize : fg, color; +import colorize : fg, color, cwriteln, cwritefln; void main() { - writeln("This is blue".color(fg.blue)); + cwriteln("This is blue".color(fg.blue)); + + auto c = "red"; + cwritefln("This is %s".color(c), c); } ```