mirror of
https://github.com/jroimartin/gocui.git
synced 2025-04-26 13:48:49 +08:00
Fix typo in doc
This commit is contained in:
parent
6b3dc12c32
commit
64e8d44eee
2
doc.go
2
doc.go
@ -71,7 +71,7 @@ Mouse events are handled like any other keybinding:
|
|||||||
IMPORTANT: Views can only be created, destroyed or updated in three ways: from
|
IMPORTANT: Views can only be created, destroyed or updated in three ways: from
|
||||||
the Layout function within managers, from keybinding callbacks or via
|
the Layout function within managers, from keybinding callbacks or via
|
||||||
*Gui.Execute(). The reason for this is that it allows gocui to be
|
*Gui.Execute(). The reason for this is that it allows gocui to be
|
||||||
conccurent-safe. So, if you want to update your GUI from a goroutine, you must
|
concurent-safe. So, if you want to update your GUI from a goroutine, you must
|
||||||
use *Gui.Execute(). For example:
|
use *Gui.Execute(). For example:
|
||||||
|
|
||||||
g.Execute(func(g *gocui.Gui) error {
|
g.Execute(func(g *gocui.Gui) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user