1
0
mirror of https://github.com/fatih/color.git synced 2025-02-22 18:42:07 +02:00

Fix typo on fmt.Ffprintf -> fmt.Fprintf

This commit is contained in:
Leo Correa 2015-08-04 00:13:22 -04:00
parent a56f4833e4
commit 52aa0a6497

View File

@ -182,7 +182,7 @@ func (c *Color) PrintlnFunc() func(a ...interface{}) {
// string. Windows users should use this in conjuction with color.Output, example:
//
// put := New(FgYellow).SprintFunc()
// fmt.Ffprintf(color.Output, "This is a %s", put("warning"))
// fmt.Fprintf(color.Output, "This is a %s", put("warning"))
func (c *Color) SprintFunc() func(a ...interface{}) string {
return func(a ...interface{}) string {
return c.wrap(fmt.Sprint(a...))