ui/app: fix example code in document

Signed-off-by: Kenshi Kamata <kenshi.kamata@gmail.com>
This commit is contained in:
Kenshi Kamata
2019-08-30 00:38:14 +09:00
committed by Elias Naur
parent 41ea609d8e
commit ea2ee1abcc
+2 -2
View File
@@ -18,7 +18,7 @@ For example:
import "gioui.org/ui"
w := app.NewWindow(nil)
w := app.NewWindow()
for e := range w.Events() {
if e, ok := e.(app.UpdateEvent); ok {
ops.Reset()
@@ -47,7 +47,7 @@ For example, to display a blank but otherwise functional window:
func main() {
go func() {
w := app.NewWindow(nil)
w := app.NewWindow()
for range w.Events() {
}
}()