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:
parent
a56f4833e4
commit
52aa0a6497
2
color.go
2
color.go
@ -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...))
|
||||
|
Loading…
x
Reference in New Issue
Block a user