Skip to content

Commit

Permalink
Merge pull request #53 from ahmetalpbalkan/patch-2
Browse files Browse the repository at this point in the history
Fix typo in godoc comments
  • Loading branch information
fatih authored Jan 6, 2017
2 parents 34e4ee0 + 9b06c57 commit e8e01ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions color.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func (c *Color) PrintlnFunc() func(a ...interface{}) {

// SprintFunc returns a new function that returns colorized strings for the
// given arguments with fmt.Sprint(). Useful to put into or mix into other
// string. Windows users should use this in conjuction with color.Output, example:
// string. Windows users should use this in conjunction with color.Output, example:
//
// put := New(FgYellow).SprintFunc()
// fmt.Fprintf(color.Output, "This is a %s", put("warning"))
Expand All @@ -309,7 +309,7 @@ func (c *Color) SprintFunc() func(a ...interface{}) string {

// SprintfFunc returns a new function that returns colorized strings for the
// given arguments with fmt.Sprintf(). Useful to put into or mix into other
// string. Windows users should use this in conjuction with color.Output.
// string. Windows users should use this in conjunction with color.Output.
func (c *Color) SprintfFunc() func(format string, a ...interface{}) string {
return func(format string, a ...interface{}) string {
return c.wrap(fmt.Sprintf(format, a...))
Expand All @@ -318,7 +318,7 @@ func (c *Color) SprintfFunc() func(format string, a ...interface{}) string {

// SprintlnFunc returns a new function that returns colorized strings for the
// given arguments with fmt.Sprintln(). Useful to put into or mix into other
// string. Windows users should use this in conjuction with color.Output.
// string. Windows users should use this in conjunction with color.Output.
func (c *Color) SprintlnFunc() func(a ...interface{}) string {
return func(a ...interface{}) string {
return c.wrap(fmt.Sprintln(a...))
Expand Down Expand Up @@ -361,7 +361,7 @@ func (c *Color) DisableColor() {
c.noColor = boolPtr(true)
}

// EnableColor enables the color output. Use it in conjuction with
// EnableColor enables the color output. Use it in conjunction with
// DisableColor(). Otherwise this method has no side effects.
func (c *Color) EnableColor() {
c.noColor = boolPtr(false)
Expand Down

0 comments on commit e8e01ee

Please sign in to comment.