Skip to content

Commit

Permalink
Correct stringer interface example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
meowgorithm committed Jun 16, 2021
1 parent 40b2c31 commit 639b1fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ fmt.Println(lipgloss.NewStyle().Bold(true).Render("Hello, kitty."))
But you could also use the Stringer interface:

```go
var style = lipgloss.NewStyle().String("你好,猫咪。").Bold(true)
var style = lipgloss.NewStyle().SetString("你好,猫咪。").Bold(true)

fmt.Printf("%s\n", style)
```
Expand Down

0 comments on commit 639b1fe

Please sign in to comment.