aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAndrey Rubtsov <andrii.rubtsov@gmail.com>2016-10-02 07:06:52 +0000
committerAndrey Rubtsov <andrii.rubtsov@gmail.com>2016-10-02 07:06:52 +0000
commitbb78242176cb504879c1fed7a3c3195170728d6f (patch)
treed3d3b15fdcab7a4db1fdb9067a5d675b64899a2b /README.md
parent0016e2689083bc05a71fc0bdcd75f4947f6a5182 (diff)
downloadcolour-bb78242176cb504879c1fed7a3c3195170728d6f.tar.gz
colour-bb78242176cb504879c1fed7a3c3195170728d6f.tar.bz2
Minor fix for doc helper functions in README
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 0921f98..6e39e91 100644
--- a/README.md
+++ b/README.md
@@ -81,8 +81,8 @@ info := color.New(color.FgWhite, color.BgGreen).SprintFunc()
fmt.Printf("This %s rocks!\n", info("package"))
// Use helper functions
-fmt.Printf("This", color.RedString("warning"), "should be not neglected.")
-fmt.Printf(color.GreenString("Info:"), "an important message." )
+fmt.Println("This", color.RedString("warning"), "should be not neglected.")
+fmt.Printf("%v %v\n", color.GreenString("Info:"), "an important message.")
// Windows supported too! Just don't forget to change the output to color.Output
fmt.Fprintf(color.Output, "Windows support: %s", color.GreenString("PASS"))