docs: fix background color detection example in doc comment
This commit is contained in:
parent
fc707bb7ea
commit
d40db141fa
1 changed files with 2 additions and 2 deletions
4
color.go
4
color.go
|
|
@ -54,8 +54,8 @@ func (e ForegroundColorMsg) IsDark() bool {
|
|||
// [BackgroundColorMsg.IsDark] to determine if the color is dark or light. For
|
||||
// example:
|
||||
//
|
||||
// func (m Model) Init() (Model, Cmd) {
|
||||
// return m, RequestBackgroundColor()
|
||||
// func (m Model) Init() Cmd {
|
||||
// return RequestBackgroundColor()
|
||||
// }
|
||||
//
|
||||
// func (m Model) Update(msg Msg) (Model, Cmd) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue