Skip to content

Commit dea9d3a

Browse files
authored
Merge pull request #41 from andreyrubtsov/minor-fix-readme
Minor fix for doc helper functions in README
2 parents 0016e26 + bb78242 commit dea9d3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ info := color.New(color.FgWhite, color.BgGreen).SprintFunc()
8181
fmt.Printf("This %s rocks!\n", info("package"))
8282

8383
// Use helper functions
84-
fmt.Printf("This", color.RedString("warning"), "should be not neglected.")
85-
fmt.Printf(color.GreenString("Info:"), "an important message." )
84+
fmt.Println("This", color.RedString("warning"), "should be not neglected.")
85+
fmt.Printf("%v %v\n", color.GreenString("Info:"), "an important message.")
8686

8787
// Windows supported too! Just don't forget to change the output to color.Output
8888
fmt.Fprintf(color.Output, "Windows support: %s", color.GreenString("PASS"))

0 commit comments

Comments
 (0)